Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: NAT punch-through (hole punching)  (Read 2726 times)

0 Members and 1 Guest are viewing this topic.

julen26

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://julen26.blogspot.com
NAT punch-through (hole punching)
« on: October 29, 2012, 03:14:24 am »
Hi all, it has been a while...

I'm coding the network part on my soccer style game. The game goes well when playing on LAN, this is not a lantency issue anyway.

I've done simple system wich allows to find and play a match automatically. If the client doen't find any playable match, it starts a server waiting for other player. It uses a database etc...
I don't want to complicate my work on doing a virtual UDP connection, so I've used TCP.

The problem is that servers behind a router can't be reached by clients, the server owner must open ports on his router using NAT. I want to avoid this trying to implement NAT punch-through technique. I know how to do it for UDP, but I'm using TCP. Is it the same algorithm? Any ideas?

Thanks!

 

anything