I'm writing a simple P2P application to test the feasibilty of using UDP hole-punching in a larger project.
I tried my test apps from home yesterday and they worked.
However, I am now at work and the same code no longer does the job. The sender is sending to the appropriate port on the external IP address of our router here, but the receiver isn't getting any of them.
Prior to calling UdpClient.Receive()
, the receiving app sends a packet to the IP:port that it will be listening on. Again, this works on my home setup, but not here. The outcome is the same regardless of whether Windows Firewall is on or off, so that's not the issue.
Could it be that the routers are handling the situation differently?
EDIT1: Both apps run on the same machine.