Random Port Generator
Generate unique random TCP/UDP port numbers while avoiding reserved and common dev ports.
How to use
Choose the default user-port range, the IANA dynamic/private range, or enter custom boundaries. Set how many unique values you need and optionally exclude ports 0–1023 plus a local list of common development services such as Vite, PostgreSQL, Redis and MongoDB. Generate uses Web Crypto with rejection sampling to avoid modulo bias. The lookup field explains well-known entries and broad IANA ranges. A generated port is only a candidate: another local process may already be listening, so verify availability before binding.
FAQ
What is the IANA dynamic port range?
Ports 49152 through 65535 are designated dynamic/private and are commonly used for temporary client-side assignments.
Does a random port guarantee availability?
No. Only the operating system can confirm whether a port is free at bind time.