#networking #port #portpicker-ipv4 #portpicker

portpicker-ipv4

Pick a free unused IPV4 port -- forked from portpicker

1 unstable release

0.1.1 Apr 2, 2025

#8 in #network

Download history 123/week @ 2025-03-31 19/week @ 2025-04-07

142 downloads per month

Unlicense

5KB
51 lines

Portpicker-ipv4 - Pick a free unused IPV4 port

Forked from Portpicker-rs. The information for that is down below. The API is the same but

Portpicker-rs - Pick a free unused port

Crates.io Documentation

Picks a free port, that is unused on both TCP and UDP.

Usage:

portpicker::pick_unused_port().expect("No ports free")

License

The Unlicense: free to use, modify, and distribute.

Dependencies

~330KB