Networking lookup
Common port numbers and what uses them
Type a port number or a name. Get what it is, TCP or UDP, and if it is safe to open.
The ports people look up most
What is a port?
Think of a computer as a block of flats. The IP address is the street address. It gets the data to the right building.
The port is the flat number. It gets the data to the right program inside. A web server waits behind door 443, SSH behind door 22.
There are 65,536 doors, numbered 0 to 65535. TCP and UDP each have their own set.
All 120 ports by purpose
Open a group to see its ports. Tap a number for the full answer.
Web6 ports80, 443, 3128, 8080, 8443
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP | HTTP | Plain web traffic. Most sites only use it to redirect to HTTPS. | Fine to open |
| TCP | HTTPS | Encrypted web traffic over TLS. Also WebSocket (wss), gRPC and DoH. | Fine to open |
| UDP | HTTP/3 (QUIC) | HTTP/3 runs on QUIC over UDP on the same port number. | Fine to open |
| TCP | HTTP proxy | A classic default port for web proxies. | Open with care |
| TCP | Alt HTTP / proxy | Second web port, used by proxies, app servers and admin pages. | Open with care |
| TCP | Alt HTTPS | Second HTTPS port, often for admin panels and app servers. | Fine to open |
Email8 ports25, 110, 119, 143, 465, 587, 993, 995
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP | SMTP | Mail servers passing email to each other. Often blocked for home users. | Fine to open |
| TCP | POP3 | Downloads mail. Plain text unless STARTTLS is used; prefer 995. | Keep closed |
| TCP | NNTP | Usenet news groups. | Open with care |
| TCP | IMAP | Reads mail on the server. Plain text unless STARTTLS is used; prefer 993. | Keep closed |
| TCP | SMTP submission (TLS) | Sending mail from an app with TLS from the first byte. | Fine to open |
| TCP | SMTP submission | Sending mail from an app, with login and STARTTLS. | Fine to open |
| TCP | IMAPS | IMAP inside TLS. The port to use for reading mail. | Fine to open |
| TCP | POP3S | POP3 inside TLS. | Fine to open |
Files14 ports20, 21, 69, 111, 137, 138, 139, 445, ...
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP | FTP data | Carries files in active-mode FTP. | Keep closed |
| TCP | FTP | FTP commands and login. Password travels as plain text. | Keep closed |
| UDP | TFTP | Tiny file transfer with no login. Used to boot and update network gear. | Keep closed |
| TCP/UDP | rpcbind | Tells clients where Unix RPC services such as NFS listen. | Keep closed |
| UDP | NetBIOS name | Old Windows name lookups on a local network. | Keep closed |
| UDP | NetBIOS datagram | Old Windows network browsing messages. | Keep closed |
| TCP | NetBIOS session | Old way to run Windows file sharing (SMB). Modern SMB uses 445. | Keep closed |
| TCP | SMB | Windows file and printer sharing. Block it from the internet. | Keep closed |
| TCP | rsync | The rsync daemon for copying and syncing files. Often run over SSH instead. | Keep closed |
| TCP | FTPS data | FTP data channel inside TLS. | Keep closed |
| TCP | FTPS | FTP control channel inside TLS from the first byte. | Keep closed |
| TCP/UDP | NFS | Network File System, shared folders on Unix and Linux. | Keep closed |
| TCP | iSCSI | Disks shared over the network as if they were plugged in. | Keep closed |
| TCP/UDP | BitTorrent | The classic default range for BitTorrent clients; most now pick a random port. | Keep closed |
Remote access9 ports22, 23, 135, 2222, 3389, 5900, 5985, 5986, ...
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP | SSH, SFTP, scp | Encrypted remote login, file transfer and tunnels. | Open with care |
| TCP | Telnet | Remote terminal with no encryption. Replaced by SSH. | Keep closed |
| TCP | Windows RPC | Endpoint mapper for Windows remote calls. Never expose it to the internet. | Keep closed |
| TCP | SSH (alternate) | A common second port for SSH, used to dodge noisy scans on 22. | Keep closed |
| TCP/UDP | RDP | Windows Remote Desktop. A top target for attacks; put it behind a VPN. | Keep closed |
| TCP | VNC | Remote screen sharing. Many setups are weakly protected. | Keep closed |
| TCP | WinRM (HTTP) | Windows remote management over HTTP. | Keep closed |
| TCP | WinRM (HTTPS) | Windows remote management over HTTPS. | Keep closed |
| TCP | X11 | Unix graphical display over the network. Tunnel it through SSH. | Keep closed |
Network services20 ports7, 53, 67, 68, 123, 161, 162, 179, ...
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP/UDP | Echo | Sends back whatever it gets. Old test service, usually turned off. | Open with care |
| TCP/UDP | DNS | Name lookups. UDP for most questions, TCP for large answers. | Open with care |
| UDP | DHCP server | Where a DHCP server listens for devices asking for an address. | Open with care |
| UDP | DHCP client | Where your device listens for the DHCP offer and ack. | Open with care |
| UDP | NTP | Keeps clocks in sync. | Open with care |
| UDP | SNMP | Reads counters and settings from routers, switches and printers. | Open with care |
| UDP | SNMP trap | Devices send alerts (traps) to a monitoring server here. | Open with care |
| TCP | BGP | Routers of different networks swapping routes. | Open with care |
| UDP | Syslog | Devices send log lines to a log server. Plain text. | Open with care |
| UDP | RIP | An old, simple routing protocol. | Open with care |
| UDP | DHCPv6 client | Where a device listens for DHCPv6 replies. | Open with care |
| UDP | DHCPv6 server | Where a DHCPv6 server or relay listens. | Open with care |
| TCP/UDP | DNS over TLS / QUIC | Encrypted DNS: TLS on TCP, or QUIC on UDP. | Open with care |
| UDP | VXLAN | Virtual networks laid over a data centre network. | Open with care |
| UDP | mDNS | Finds printers and speakers by name on the local network. | Open with care |
| UDP | LLMNR | Windows local name lookup. Often turned off for safety. | Keep closed |
| TCP | Syslog over TLS | Log lines sent inside TLS. | Open with care |
| TCP | Zabbix agent | Monitoring agent on a watched server. | Open with care |
| TCP | Zabbix server | Monitoring server receiving agent data. | Open with care |
| TCP/UDP | Dynamic ports | Temporary source ports your device picks for its own side of a connection. | Not a service |
VPN and login12 ports88, 389, 500, 636, 1080, 1194, 1701, 1723, ...
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP/UDP | Kerberos | Ticket-based login used by Windows domains and many enterprise systems. | Open with care |
| TCP/UDP | LDAP | Directory lookups for users and groups. Use StartTLS or 636. | Keep closed |
| UDP | IKE (IPsec) | Sets up IPsec VPN keys. | Fine to open |
| TCP | LDAPS | LDAP inside TLS. | Open with care |
| TCP | SOCKS | SOCKS proxy, including SOCKS5. | Open with care |
| UDP | OpenVPN | OpenVPN tunnels. Can also run on TCP. | Fine to open |
| UDP | L2TP | Layer 2 tunnel, almost always used inside IPsec. | Open with care |
| TCP | PPTP | An old VPN with broken encryption. Do not use it. | Keep closed |
| UDP | RADIUS | Login checks for Wi-Fi (802.1X) and VPNs. | Open with care |
| UDP | RADIUS accounting | Records when sessions start and stop. | Open with care |
| UDP | IPsec NAT traversal | IPsec traffic wrapped in UDP so it passes home routers. | Fine to open |
| UDP | WireGuard | The usual default WireGuard VPN port; any UDP port works. | Not a service |
Databases15 ports1433, 1434, 1521, 2181, 3306, 5432, 5671, 5672, ...
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP | SQL Server | Microsoft SQL Server database. Keep it off the internet. | Keep closed |
| UDP | SQL Server Browser | Helps clients find named SQL Server instances. | Keep closed |
| TCP | Oracle Database | Oracle database listener. | Keep closed |
| TCP | ZooKeeper | Coordination service used by many clustered systems. | Keep closed |
| TCP | MySQL / MariaDB | MySQL and MariaDB databases. Keep it off the internet. | Keep closed |
| TCP | PostgreSQL | PostgreSQL database. | Keep closed |
| TCP | AMQP over TLS | Message queues (such as RabbitMQ) with TLS. | Keep closed |
| TCP | AMQP | Message queues such as RabbitMQ. | Keep closed |
| TCP | Redis | Redis in-memory store. Exposed servers get taken over quickly. | Keep closed |
| TCP | InfluxDB | Default HTTP API of the InfluxDB time series database. | Keep closed |
| TCP | Kafka | Default port of Apache Kafka brokers. | Keep closed |
| TCP | Elasticsearch | Elasticsearch and OpenSearch HTTP API. Keep it private. | Keep closed |
| TCP | Elasticsearch nodes | Elasticsearch nodes talking to each other. | Keep closed |
| TCP/UDP | Memcached | Memory cache. Open UDP servers were used in huge DDoS floods. | Keep closed |
| TCP | MongoDB | MongoDB database. Turn on login and keep it private. | Keep closed |
Calls and media11 ports554, 1935, 3478, 5004, 5060, 5061, 5222, 5269, ...
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP/UDP | RTSP | Controls IP camera and media streams. | Keep closed |
| TCP | RTMP | Sending a live stream from an encoder to a server. | Open with care |
| TCP/UDP | STUN / TURN | Helps calls find a path through NAT, or relays them. | Fine to open |
| UDP | RTP media | A registered port for RTP audio and video. Calls often pick ports from a range instead. | Open with care |
| TCP/UDP | SIP | Internet phone call setup in plain text. | Open with care |
| TCP | SIP over TLS | Call setup inside TLS. | Open with care |
| TCP | XMPP client | Chat apps connecting to an XMPP server. | Open with care |
| TCP | XMPP server | XMPP chat servers talking to each other. | Open with care |
| TCP | TURN over TLS | STUN and TURN inside TLS. | Fine to open |
| TCP | IRC | Internet Relay Chat. TLS servers often use 6697. | Open with care |
| TCP | Minecraft | Default port of a Minecraft Java Edition server. | Open with care |
Devices and IoT12 ports502, 515, 631, 1883, 1900, 5683, 5684, 8883, ...
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP | Modbus TCP | Factory machines and meters. No login at all, so keep it isolated. | Keep closed |
| TCP | LPD | Old Unix printing protocol. | Keep closed |
| TCP | IPP | Internet Printing Protocol, used by most modern printers. | Keep closed |
| TCP | MQTT | Smart home and sensor messages, not encrypted. Prefer 8883. | Keep closed |
| UDP | SSDP (UPnP) | Finds smart TVs, speakers and routers on the local network. | Keep closed |
| UDP | CoAP | A tiny web-like protocol for very small devices. | Keep closed |
| UDP | CoAP over DTLS | CoAP with encryption. | Keep closed |
| TCP | MQTT over TLS | MQTT with encryption. The one to use outside a lab. | Open with care |
| TCP | Raw printing | Send-and-print port on network printers (also Prometheus node exporter). | Keep closed |
| TCP | DNP3 | Power and water utility control systems. | Keep closed |
| TCP/UDP | EtherNet/IP | Factory controllers and drives (CIP over Ethernet). | Keep closed |
| UDP | BACnet | Building control: heating, cooling, lights. | Keep closed |
Developer tools13 ports2375, 2376, 3000, 4200, 5000, 5173, 5601, 6443, ...
| Port | Service | What it is | Open to internet |
|---|---|---|---|
| TCP | Docker API | Docker engine API without TLS. Anyone who reaches it controls the host. | Keep closed |
| TCP | Docker API (TLS) | Docker engine API with TLS. | Keep closed |
| TCP | Dev web server | A popular default for local web apps and dashboards. | Keep closed |
| TCP | Angular dev server | Default port of the Angular development server. | Keep closed |
| TCP | Dev web server | Default port of the Flask development server and many local tools. | Keep closed |
| TCP | Vite dev server | Default port of the Vite development server. | Keep closed |
| TCP | Kibana | Default web port of the Kibana dashboard. | Keep closed |
| TCP | Kubernetes API | Default port of the Kubernetes API server. | Keep closed |
| TCP | Alt HTTP | A common port for local and test web servers. | Keep closed |
| TCP | Jupyter / alt HTTP | Default port of Jupyter notebooks and other local tools. | Keep closed |
| TCP | Dev and admin tools | Used by many tools, such as PHP-FPM and object storage consoles. | Keep closed |
| TCP | Prometheus | Default web port of the Prometheus monitoring server. | Keep closed |
| TCP | Git | The plain git:// protocol, read-only and unencrypted. | Keep closed |
Numbers follow the IANA port registry. A common default is a widely used setting that the registry lists for something else, or not at all. Any service can be moved to another port.
The three port ranges
0 to 1023
Well-known
Common services such as SSH, DNS, HTTP and HTTPS. Only admin programs may listen on them on most systems.
1024 to 49151
Registered
Assigned by IANA to specific apps, such as 3306 for MySQL or 1883 for MQTT.
49152 to 65535
Dynamic
Temporary source ports your device picks for its own side of each connection.
Questions people ask
What is a port number?
A port is a number from 0 to 65535 that picks which app on a device gets the data. The IP address finds the device; the port finds the program, such as a web server on 443 or SSH on 22.
What port does HTTPS use?
HTTPS uses TCP port 443. HTTP/3 also uses port 443, but on UDP. Plain HTTP uses port 80.
What are well-known ports?
Ports 0 to 1023 are well-known ports, assigned by IANA to common services like SSH (22), DNS (53) and HTTPS (443). Ports 1024 to 49151 are registered ports, and 49152 to 65535 are dynamic ports your device picks for its own side of a connection.
Is a TCP port the same as a UDP port?
No. TCP and UDP each have their own 65536 ports. TCP 53 and UDP 53 are two different doors, even though DNS uses both.
Which ports should never be open to the internet?
Database ports (3306, 5432, 6379, 27017), file sharing (445, 139), remote desktop (3389), Telnet (23) and admin APIs like Docker on 2375. Reach them through a VPN or SSH instead.
How can I see which ports are open on my computer?
On Linux run ss -tulpn, on macOS run lsof -i -P | grep LISTEN, and on Windows run netstat -ano in a terminal. Each lists the ports your programs are listening on.