This Python script uses the pystun3 library to determine your NAT type by querying a public STUN server. This is useful for troubleshooting network issues related to NAT (Network Address Translation), especially for applications like VoIP, gaming, and peer-to-peer communication.
- Windows 11 (or any OS with Python 3.11 installed)
- Python 3.11 installed from python.org
- The script has compatibility issues with Python 3.13+ due to how the
stunpackage is implemented.
- The script has compatibility issues with Python 3.13+ due to how the
pystun3Python package installed for Python 3.11
Download and install Python 3.11 from the official source:
Make sure to:
- Add Python to your system PATH during installation
- Or use the Python launcher
pyto specify Python version explicitly
Open a new PowerShell or Command Prompt and run:
py -3.11 -m pip install pystun3