Skip to content

Obtain an external (NAT) IPv4 address using the STUN protocol

License

Notifications You must be signed in to change notification settings

bmrzycki/stunip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

stunip

Obtain an externally routable IPv4 address using the STUN protocol over UDP. Small home and private networks often use private IPv4 network address. Applications like Dynamic DNS which require the external Internet routable address mapped to this private network. Most users rely on the HTTP/HTTPS protocols and websites like https://ifconfig.co/.

STUN offers a lightweight alternative requiring fewer than 100 bytes sent and received via UDP making STUN a great choice for embedded or lower-end compute devices.

Installation

stunip.py is self-contained and only needs Python 3.x. The simplest use-case is to git clone this repo and run directly.

Servers

If no server is specified a random Google public STUN server will be used. However, there are many other servers which may be faster depending on your geographical region and you can find a list of public STUN servers here.

About

Obtain an external (NAT) IPv4 address using the STUN protocol

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages