I am having problem sending UDP packets over the internet. I followed the example found at
https://msdn.microsoft.com/en-us/library/system.net.sockets.udpclient(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2 and I was able to send UDP packets on the local host (client and server are on the same computer). I was also able to send UDP packets to other computers on the same network using the private IP from router (192.168.xxx.xxx). But when I want to send the UDP packet over the internet, the packets will not get to the destination computer. When I do a google search on what might be the cause, I discovered the following:
1. To access a computer over the internet, you must connect to the "public" IP address of the computer.
2. You need to enable port forwarding on your router to redirect incoming packets on the public IP address to the computer's private IP address
I did everything and still, it refuse to work. I am sending out UDP packets tothe public IP address of my internet and I have also done port forwarding ony router. Although I am not too sure if the setting I did was correct, but there are four required fields for the port forwarding settings which I set as follows:
Remote host: I left it blank
Remote port range: 54321-54321
Local host: 192.168.1.13 (the receiving computer)
Local port: 54321
Protocol: TCP/UDP
And I saved the settings. So, when I send out UDP packets on the sending computer, it did not arrive on the receiving computer. I don't know why. Please help me out.