When you select a UDP port, select an available 16-bit integer from the range that follows:
Use available ports in the private range 49152 to 65535
To check which ports are defined as defaults for a node, examine the file /etc/services. You should also use the netstat command to list the UDP ports currently in use. For example:
# netstat -a | more UDP: IPv4 Local Address Remote Address State -------------------- -------------------- ---------- *.sunrpc Idle *.* Unbound *.32772 Idle *.* Unbound *.32773 Idle *.lockd Idle *.32777 Idle *.32778 Idle *.32779 Idle *.32780 Idle *.servicetag Idle *.syslog Idle *.16161 Idle *.32789 Idle *.177 Idle *.32792 Idle *.32798 Idle *.snmpd Idle *.32802 Idle *.* Unbound *.* Unbound *.* Unbound UDP: IPv6 Local Address Remote Address State If ------------------------- ------------------------- ---------- ----- *.servicetag Idle *.177 Idle
Look in the UDP section of the output; the UDP ports that are listed under Local Address are already in use. If a port is listed in the /etc/services file, its associated name is displayed rather than the port number in the output.