SyntaxFix
Write A Post
Hire A Developer
Questions
Bind the socket to port 0. A random free port from 1024 to 65535 will be selected. You may retrieve the selected port with getsockname() right after bind().
getsockname()
bind()