ShareYourGroupShareYourGroupIP and Internet

Common port numbers and what they are for

The port numbers you are most likely to meet, with the service that normally uses each. Type a number or a name to filter.

What a port is

An IP address gets data to the right device. A port number gets it to the right program on that device. A computer can run a web server, a mail server and a game at once on one address, and the port, a number from 0 to 65,535, says which of them a piece of data is for. An address and port together are written with a colon: 192.168.1.10:8080.

Programs that wait for connections "listen" on an agreed port so that others know where to find them: web servers on 80 and 443, mail on 25, and so on. Your own browser uses a random high port for its side of each conversation.

The numbers fall into three bands. 0 to 1023 are the well-known ports, registered for the classic services. 1024 to 49151 are registered for particular products. 49152 to 65535 are free for temporary use. The registrations are kept by IANA, the body that also coordinates IP addresses. A program can be set to listen on a different port from its usual one, so the list below shows convention, not a guarantee.

TCP and UDP are the two ways of carrying data. TCP checks that everything arrives in order (web pages, mail, files). UDP sends without checking, which is quicker (calls, games, DNS questions). The same number is a different port in each.

PortCarried byServiceWhat it is for
20TCPFTP dataFile transfer: the files themselves
21TCPFTP controlFile transfer: commands and login
22TCPSSHSecure remote login and file copy (SFTP, SCP)
23TCPTelnetOld remote login with no encryption; avoid it
25TCPSMTPMail passed between mail servers
53TCP and UDPDNSTurning names into addresses
67UDPDHCP serverHanding out addresses on a local network
68UDPDHCP clientA device asking for an address
69UDPTFTPVery simple file transfer, used by network equipment
80TCPHTTPWeb pages without encryption
110TCPPOP3Collecting mail from a mailbox
123UDPNTPSetting the clock from a time server
137UDPNetBIOS nameOld Windows network names
139TCPNetBIOS sessionOld Windows file sharing
143TCPIMAPReading mail that stays on the server
161UDPSNMPMonitoring network equipment
389TCPLDAPDirectory look-ups in offices
443TCP and UDPHTTPSWeb pages with encryption; UDP 443 carries HTTP/3
445TCPSMBWindows file and printer sharing; never open it to the internet
465TCPSMTPSSending mail with encryption from the start
500UDPIKESetting up IPsec VPN tunnels
514UDPSyslogEquipment sending its logs to a collector
587TCPMail submissionA mail app sending mail to its server
631TCPIPPNetwork printing
636TCPLDAPSDirectory look-ups with encryption
853TCPDNS over TLSEncrypted DNS look-ups
993TCPIMAPSIMAP mail with encryption
995TCPPOP3SPOP3 mail with encryption
1194UDPOpenVPNA common VPN protocol
1433TCPMicrosoft SQL ServerDatabase
1723TCPPPTPAn old, weak VPN protocol
1883TCPMQTTMessages between smart devices and their hub
3306TCPMySQL / MariaDBDatabase
3389TCPRemote Desktop (RDP)Controlling a Windows computer from afar; a favourite target of attackers
3478UDPSTUN / TURNHelping calls and games connect through NAT
5060TCP and UDPSIPSetting up internet phone calls
5222TCPXMPPChat services
5353UDPmDNSFinding printers and devices on the local network by name
5432TCPPostgreSQLDatabase
5900TCPVNCRemote screen sharing
6379TCPRedisIn-memory data store
8080TCPHTTP alternateWeb servers under test, proxies, some router pages
8443TCPHTTPS alternateEncrypted web admin pages
27017TCPMongoDBDatabase
51820UDPWireGuardA modern VPN protocol (its usual default port)

Open, closed and forwarded ports

A port is open when a program is listening on it and nothing in between blocks the way. It is closed when nothing is listening. A firewall can also silently drop traffic to a port, which makes it look as if nothing is there at all.

Your home router blocks connections coming in from the internet on every port unless you tell it otherwise. Port forwarding is that instruction: "send anything arriving on port 25565 to the computer at 192.168.1.20". It is needed for hosting a game server or reaching a recorder from outside, and it does not work behind carrier-grade NAT.

Ports and safety

Ports on your own computer

Addresses such as localhost:3000 or 127.0.0.1:8080 use ports too, on your own machine only. See 127.0.0.1 and localhost. To see what is listening on Windows, open Command Prompt and run:

netstat -an

Lines marked LISTENING show ports with a program waiting on them.

What port does HTTPS use?

443. Plain HTTP uses 80. Browsers add these by themselves, which is why you never type them.

Is it dangerous to have open ports?

Outgoing connections from your devices are normal and safe. The risk is in ports open to incoming connections from the internet, where an outdated or badly secured program is listening.

How many ports are there?

65,536 for TCP and the same again for UDP, numbered 0 to 65,535.