Skip to content

tsjolie/pystun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

STUN NAT Type Detection Script

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.


Prerequisites

  • 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 stun package is implemented.
  • pystun3 Python package installed for Python 3.11

Installation Steps

1. Install 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 py to specify Python version explicitly

2. Install the pystun3 package

Open a new PowerShell or Command Prompt and run:

py -3.11 -m pip install pystun3

About

Script to determine NAT type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages