portserver

Python 3 module to find unused network ports to bind to

Install

All systems
curl cmd.cat/portserver.sh
Debian Debian
apt-get install python3-portpicker
Ubuntu
apt-get install python3-portpicker
image/svg+xml Kali Linux
apt-get install python3-portpicker
Windows (WSL2)
sudo apt-get update sudo apt-get install python3-portpicker
Raspbian
apt-get install python3-portpicker

python3-portpicker

Python 3 module to find unused network ports to bind to

Portpicker provides an API to find and return an available network port for an application to bind to. Ideally suited for use from unittests or for test harnesses that launch local servers. This package installs the Python 3 version.