Using port 0 tells the OS to automatically assign a port. It just checks if you’ve given it zero and if so, gives you a free port instead.
TCP port 0 usage
Leave a reply
Using port 0 tells the OS to automatically assign a port. It just checks if you’ve given it zero and if so, gives you a free port instead.