available web ports code example
Example: port range
Port numbers can run from 0 to 65353. Port numbers from 0 to 1023 are reserved
for common TCP/IP applications and are called well-known ports. The use of
well-known ports allows client applications to easily locate the corresponding
server application processes on other hosts.