How can I get the Multicast/Unicast IP addresses for UDP ports in use on my computer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IWishUWell
    New Member
    • Dec 2010
    • 1

    How can I get the Multicast/Unicast IP addresses for UDP ports in use on my computer?

    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!
Working...