Skip to main content

Get free dynamic / registered ports

Project description

Get free dynamic / registered ports

Tested against Windows 10 / Python 3.10 / Anaconda

pip install get-free-port

from https://www.techtarget.com/searchnetworking/definition/dynamic-port-numbers

The registries for these protocols are divided into three categories, based on the available range of numbers (0 to 65535):

System ports, also known as well-known ports, include ports 0 to 1023 and support commonly used services. User ports, also known as registered ports, include ports 1024 to 49151 and are assigned to specific services, based on service applications submitted to IANA. Dynamic ports, also known as private or ephemeral ports, include ports 49152 to 65535 and are never assigned.

from get_free_port import get_dynamic_ports, get_registered_ports
print(get_dynamic_ports(3))
print(get_registered_ports(3))
[49152, 49153, 49154]
[1025, 1026, 1027]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get_free_port-0.10.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_free_port-0.10-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file get_free_port-0.10.tar.gz.

File metadata

  • Download URL: get_free_port-0.10.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for get_free_port-0.10.tar.gz
Algorithm Hash digest
SHA256 c92447228f1950e528e16c233f74ad6d06e0b1ed5012475bf2be497669850eda
MD5 adc19b358a5f856e730be653beb2c70a
BLAKE2b-256 00c94d50abf4fefc37b9a02976da7854aab4b0656dd75c5ba2919a51df4d70b9

See more details on using hashes here.

File details

Details for the file get_free_port-0.10-py3-none-any.whl.

File metadata

  • Download URL: get_free_port-0.10-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for get_free_port-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3b9e0f9ad119a5140aa70528ef950bf8b176e605f048a9c0656e4f32bb8c2566
MD5 862a3cbe6a2c7dc022d4e3d20aaec5b3
BLAKE2b-256 a217a8170ca4ce745aa3ff3990db0f95f2410f314632ea951b22d06a1e23c156

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page