Skip to content

joshuaar/UDPHole_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

UDPHole_example

Simple example of UDP hole punching in python.

##Usage This has a 'client' and a 'server'. They each need to know the other's IP address and port to connect on. These are hardcoded in the clientAddr and serverAddr variables in client.py and server.py respectively. Then they exchange some data, and that's it.

This was tested between two home NATs on separate cable internet connections. It was also tested between an institutional NAT (Arizona State University) and a home NAT.

Theoretically, this should work in most situations. The big exception is "Symmetric NATs", which require some kind of relay server.

I did a similar thing in Scala using Akka actors, in a repo called UDP_Chat

##More Info http://en.wikipedia.org/wiki/UDP_hole_punching

About

Simple example of UDP hole punching in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages