reillychase / UDP-hole-punch-6112-example

Allows players to join Battle.net games without port forwarding

Repository from Github https://github.comreillychase/UDP-hole-punch-6112-exampleRepository from Github https://github.comreillychase/UDP-hole-punch-6112-example

UDP hole punching: A Battle.net port forward fix proof of concept

Allows players to join Battle.net games without port forwarding

For the last 20+ years, playing a battle.net or PvPGN game online has required port forwarding 6112 to your PC. Now there is a way around that.

If you are a PvPGN server admin, there is a way to allow all of your players to host without port forward, read on to find out how.

  1. Publish JSON list of all player IP address
  2. Take main.py and extend it to download that list of IPs, and send data to each of them periodically on port 6112 (as long as that is the port the game is configured to run on)
  3. Now anyone can join your game
  4. You would then compile main.py to an exe and ship it with the game client, run it when the game starts
  5. You might also want to extend this to first check NAT Type using a STUN client, this will not working on certain NAT types like symmetric NAT

About

Allows players to join Battle.net games without port forwarding

License:GNU General Public License v3.0


Languages

Language:Python 100.0%