-2

I need to develop simple game that will be using peer to peer connection using centralize index manager server.

I know there is a problem when a client is trying to connect to another client that is behind a router. I was reading about NAT traversal that explains using mainly theory, but what I would really like to see is code examples with either C++ or Java.

Can you help me to understand the meaning of NAT traversal via code? Maybe some kind of open source simple client game ?

Ren
  • 1,111
  • 5
  • 15
  • 24
user63898
  • 29,839
  • 85
  • 272
  • 514

2 Answers2

2

NAT traversal is not that simple to get right. STUN might help: http://en.wikipedia.org/wiki/STUN

Jonas Bötel
  • 4,452
  • 1
  • 19
  • 28