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 ?
NAT traversal is not that simple to get right. STUN might help: http://en.wikipedia.org/wiki/STUN