If I call netstat -an udp in the command window I'll get entries like:
UDP 0.0.0.0:12345 *:*
UDP 0.0.0.0:16400 *:*
If I use .NET's IPGlobalPropert ies.GetIPGlobal Properties.GetA ctiveUdpListene rs to get the array of IPEndPoints and check each one, I get the Port number but the IP address is 0.0.0.0, just like I get in netstat.
Can anyone tell me how to get the unicast and multicast IP address for a given IPEndPoint?
What I ultimately need to do is determine all the IP address / port combinations for active UDP connections on my computer. Perhaps there is another way?
Thanks in advance for any help you can provide!
UDP 0.0.0.0:12345 *:*
UDP 0.0.0.0:16400 *:*
If I use .NET's IPGlobalPropert ies.GetIPGlobal Properties.GetA ctiveUdpListene rs to get the array of IPEndPoints and check each one, I get the Port number but the IP address is 0.0.0.0, just like I get in netstat.
Can anyone tell me how to get the unicast and multicast IP address for a given IPEndPoint?
What I ultimately need to do is determine all the IP address / port combinations for active UDP connections on my computer. Perhaps there is another way?
Thanks in advance for any help you can provide!