Learn

Random Port Generator Guide

About this tool

Pick one or more port numbers, with the option to stay above 1024 and to avoid the ports that are usually already taken.

Questions

Does it check whether the port is free?
No. A browser cannot scan ports on another host. This picks numbers that are unlikely to clash — you still have to check your own machine.