#networking #port #portpicker

portpicker-ipv4

Pick a free unused IPV4 port -- forked from portpicker

1 unstable release

new 0.1.1 Apr 2, 2025

#65 in #port

Download history 51/week @ 2025-03-28

51 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