![]() ![]() ![]() ![]() If the internal network can receive the data, the internal network must first send a packet To the external network. Because there is no mapping in the NAT, the packet cannot enter the router when it comes to the router. The external network cannot actively send UDP data packets to the internal network machine. ![]() I sent UDP packets (via an application called PacketSender) from a host PC with a fixed IPAddress to the current PC with the GUI as a receiver on a different fixed IPAddress (not the loopback), and was able to see the packets in Wireshark on both ends.ĭo I have to do some sort of network or firewall configuration in order to work around this problem of displaying the captured data? windows-formsįirst, you can turn off the firewall to see if you can get data. IPEndPoint RemoteIP = new IPEndPoint(ipAddressClient, portnum) //ipAddressClient is an IP outside my networkīyte received = Client.EndReceive(res, ref RemoteIP) I am able to receive UDP datagrams while receiving on the loopback address 127.0.0.1 just fine, but am unable to receive/display anything when using other addresses.īelow is the snippet of code in question, willing to provide more to clarify: // IPEndPoint RemoteIP = new IPEndPoint(IPAddress.Any, portnum) //works fine only when sending and receiving on the same PC thru loopback address I'm currently making a GUI in Visual Studio 2019 C# WinForms App to receive and parse UDP messages at a defined IPAddress and port. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |