I have: a static IP for a matchmaking server (in c++)
Right now I can send both clients data to the server, and the server will route those updates back to the other players. So all the game logic works.
This means I know the IP's of the two players phones, and I can send stuff over the network. However, I have a feeling that packets are getting dropped because when the players try to send to each other, without routing everything to the server, they come from a new address that the NAT does not know of.
If I run a 2nd program on the server that is bound to a new port, the phone will not receive ANY data from that new port so:
Client sends to server @ 188.8.131.52:8004
Server sends to client from 184.108.40.206:8004
Client gets a response.
A new program sends to client from 220.127.116.11:9004 << will not make it to the phone.
18.104.22.168:8004 will still make it to phone.
This is doesn't work while I'm connected to my wifi either. So I don't know why my router would be dropping those packets.
Edited by dpadam450, 16 June 2012 - 10:14 PM.