Random port generator

The random port generator picks one or more ports in the dynamic range, the registered range, or a custom range, skips the ports of well-known services, and shows which service uses a given port.

The random pick and the lookup run in your browser, so please enable JavaScript. The list of well-known ports appears below.

Well-known ports (90)
  • 20 FTP (data)
  • 21 FTP
  • 22 SSH and SFTP, secure server access
  • 23 Telnet
  • 25 SMTP, mail transfer between servers
  • 53 DNS
  • 67 DHCP (server)
  • 68 DHCP (client)
  • 69 TFTP
  • 80 HTTP
  • 110 POP3, mail retrieval
  • 111 rpcbind (Portmapper)
  • 123 NTP, time sync
  • 135 Microsoft RPC
  • 137 NetBIOS (names)
  • 138 NetBIOS (datagram)
  • 139 NetBIOS (session)
  • 143 IMAP, mail retrieval
  • 161 SNMP
  • 162 SNMP Trap
  • 179 BGP
  • 389 LDAP
  • 443 HTTPS
  • 445 SMB, Windows file sharing
  • 465 SMTPS, encrypted mail submission
  • 500 IKE (IPsec VPN)
  • 514 Syslog
  • 587 SMTP Submission, mail from email clients
  • 631 IPP (CUPS), printing
  • 636 LDAPS
  • 853 DNS over TLS
  • 873 rsync
  • 989 FTPS (data)
  • 990 FTPS
  • 993 IMAPS
  • 995 POP3S
  • 1194 OpenVPN
  • 1433 Microsoft SQL Server
  • 1521 Oracle Database
  • 1701 L2TP
  • 1723 PPTP
  • 1883 MQTT
  • 2049 NFS
  • 2082 cPanel
  • 2083 cPanel (SSL)
  • 2086 WHM
  • 2087 WHM (SSL)
  • 2095 cPanel Webmail
  • 2096 cPanel Webmail (SSL)
  • 2222 DirectAdmin
  • 2375 Docker API
  • 2376 Docker API (TLS)
  • 2379 etcd
  • 3000 Development servers (Node.js) and Grafana
  • 3128 Squid Proxy
  • 3306 MySQL and MariaDB
  • 3389 RDP, remote desktop
  • 5000 Development servers (Flask) and Docker Registry
  • 5060 SIP
  • 5061 SIP (TLS)
  • 5222 XMPP
  • 5353 mDNS
  • 5432 PostgreSQL
  • 5601 Kibana
  • 5672 AMQP (RabbitMQ)
  • 5900 VNC
  • 5984 CouchDB
  • 6379 Redis
  • 6443 Kubernetes API
  • 6667 IRC
  • 7080 OpenLiteSpeed WebAdmin
  • 8000 Alternate HTTP and development servers
  • 8006 Proxmox VE
  • 8080 Alternate HTTP and proxy servers
  • 8443 Alternate HTTPS and Plesk
  • 8888 Alternate HTTP and Jupyter
  • 9000 PHP-FPM and Portainer
  • 9090 Prometheus and Cockpit
  • 9100 Node Exporter and direct printing (JetDirect)
  • 9200 Elasticsearch
  • 9300 Elasticsearch (node transport)
  • 9418 Git
  • 9443 Portainer (HTTPS)
  • 10000 Webmin
  • 11211 Memcached
  • 15672 RabbitMQ management
  • 19999 Netdata
  • 25565 Minecraft
  • 27017 MongoDB
  • 51820 WireGuard

Everything runs in your browser; nothing is sent or stored.

  • Under "Range", choose a preset range, or enter a different range in the "From port" and "To port" fields.
  • In the "Number of ports" field, enter how many ports you want, and every port in the result is different.
  • The "Skip ports of well-known services" option is selected by default, so the tool does not pick ports from the list of well-known ports.
  • Click "Pick" to pick again, and copy the result by clicking "Copy".
  • Changing the SSH port reduces automated login attempts, but it does not replace key-based login, a firewall, and access restrictions.
  • Under "Which service uses a port", enter a port number, and the result shows the service and the range that the port belongs to.
  • Click "Well-known ports" at the bottom of the tool to show every port in the list and the common service on each port. Many services let you change the port, so a port may also be used by another service.

The three port number ranges

A port number is a number from 0 to 65535, and IANA divides the numbers into three ranges. The well-known range, 0 to 1023, is reserved for system services, such as SSH on port 22, HTTP on port 80, and HTTPS on port 443. In the registered range, 1024 to 49151, IANA registers ports for services on request, but a registration does not stop another service from using the same port. The dynamic and private range, 49152 to 65535, is not assigned to services, and many operating systems pick temporary source ports for outgoing connections from a range that includes all or part of the dynamic range.

Choosing a port for a service

A random port is useful when you set up an internal service, a development environment, or a control panel, and when you move a service such as SSH from its well-known port to a different port. A random port lowers the chance of a conflict with an existing service, but it does not guarantee that the port is free. The operating system may assign a port from its range of temporary ports to an outgoing connection before the service starts listening on it. On Linux, the default range is 32768 to 60999, and on Windows, it is 49152 to 65535, so for a permanent service, it is common practice to pick a port from 1024 to 32767 with the "Other range" option. When you change the port of a running service, open the new port in the firewall and test a connection through it, and only then close the old port, so you do not lose access to the server.

A nonstandard port for SSH

Automated scanners mostly try to connect to port 22, so moving SSH to a different port greatly reduces the number of login attempts and the noise in the system logs. A scan of all the ports on a server finds the new port within a short time, so changing the port does not replace logging in with SSH keys, disabling password login, and limiting access to authorized addresses. After the change, also update the port in the programs that connect to the server, such as your SFTP client and backup services.

Did you know?

With our firewall and VPN service, you can restrict access to a VPS or a dedicated server to connections through the VPN only.

Firewall and VPN

Random port generator FAQ

Does the tool check that the port is free on the server?

No. The tool only picks a number from the range and does not check whether the port is in use on the server. Before you configure the port, make sure that no process on the server is listening on it. On a Linux server, the command ss -tulpn shows the ports that processes are listening on, and when you run it as root, it also shows the name of the process on each port.

Can I pick a port below 1024?

Yes. You can pick a port below 1024 with the "Other range" option, where you can enter any range from 1 to 65535. On Linux, listening on a port below 1024 requires root privileges, so for a new service, it is common practice to pick a port of 1024 or higher.

What is the difference between a TCP port and a UDP port?

TCP and UDP have separate port numbers, so one process can listen on port 5000 over TCP and another process can listen on the same number over UDP. The list of well-known ports shows the service by port number, without separating the two protocols, and in the firewall, you need to open the port for the protocol that the service uses.

Which ports are in the list of well-known ports?

The list includes the ports of network, mail, and VPN services, databases, common server control panels, and monitoring and development tools. Many services let you change the port, so a port that is not in the list can still be in use by another service.

Is there a limit on the number of ports?

Yes. Each pick returns up to 50 ports, and a higher value in the "Number of ports" field is changed to 50. When fewer ports than the number you entered remain in the range after the well-known ports are skipped, a message shows the number of possible ports in the range.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement