473,378 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 IPGlobalProperties.GetIPGlobalProperties.GetActive UdpListeners 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!
Dec 3 '10 #1
0 1272

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jörn Petersen | last post by:
Hello NG! I've been playing a little with Multiple-Destination Messaging in MSMQ using multicast addresses. I'm trying to assign a multicast address to a queue with C# code (using a...
6
by: PHLICS_Admin | last post by:
Hi All, There are two network cards in one computer (named A) , and there is one network card in another computer(named B). On computer A: one network card is used to connect to internet, and...
1
by: PHLICS_Admin | last post by:
Hi All, There are two network cards in one computer (named A) , and there is one network card in another computer(named B). On computer A: one network card is used to connect to internet, and...
6
by: Tom Kent | last post by:
I have a computer with two network cards (attached to seperate networks) and I am having trouble getting my C# application to send its multicast packets on a specific one. It receives just fine...
7
by: Nuno Magalhaes | last post by:
I'm streaming quicktime H264 movies to 224.1.2.3:554. Why, in my MulticastReceiver class of another application, have I have to bind my socket locally on the same remote port (554) in order to...
3
by: tshad | last post by:
I have been trying to run IIS and Apache Tomcat on the same Server using the same Port (80 for http and 443 for https). I am trying to do this by using multiple IP address on the same Nic card. ...
1
by: Jayme.Pechan | last post by:
I was working on a multicast client and ran into a possible problem. Here is the code... udpClient = new UdpClient(4000); udpClient.JoinMulticastGroup(IPAddress.Parse("224.1.1.1"));...
2
by: =?Utf-8?B?aXdkdTE1?= | last post by:
Hi, im writing a program that uses the multicast address to send data to multiple clients at the same time. I would like to be able to get the multicast address of the current network...
0
by: Jane Smeeth | last post by:
Hi, I have a udp client which has been subscribed to 3 multicast addresses to receive data. On receipt of data, the program needs to distinguish between the multicast addresses and send it to...
17
Plater
by: Plater | last post by:
(Sorry about the title, i'm not sure how to explain this) I am wondering if it is possible to tell on socket, HOW the incoming data was sent. Now, what I mean by that is, I have a UDP socket just...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.