Skip to main contentCrate find_port
Source - find_port
- Find the first available port starting from
port, scanning upward. - port_is_available
- Check if a port is fully available — both TCP and UDP can bind,
and no existing TCP connection is accepted on that port.
- tcp_can_connect
- Check if a TCP connection can be established to the given host and port.
- tcp_is_available
- Check if a TCP port is available for binding on the given host.
- udp_is_available
- Check if a UDP port is available for binding on the given host.