"active" IP address

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I am running a C# (dotnet frawework 2.0) application.
This application use sockets to exchange messages with this same
application on remote hosts.
At startup, an UDP (multicast) packet is sent to signal a new
application.
Each running application then try to connect to the UDP sender.
I need to update a GUI list (on each application) with all IP adresses
from running applications.
The local host should be present in this list, with the IP address that
remote applications will get from the socket accepted for connection.
I first used Dns to get local IP address.
Now I use WMI.
If there is multiple network adapter (Wireless + VPN for example), I get
the following IP addresses from WMI :
1) 0.0.0.0 !
2) the wireless IP adress
3) the VPN IP address

When I send a packet, remote applications will receive this packet from
IP address 3)
The problem is, on local host, how do I know that I should add the third
address for local host in the GUI list ?

Besides, I have 2 other questions :
1) What is the more simple way to recover when a remote application
doesn't get the startup UDP packet (the starting appliation doesn't know
how much remote application are running) ?
2) Is it normal that the UDP sender receive the data it sends ? Actually,
I check the sender IP address to skip data sent by local host !

Thanks in advance for your help,

Droopy.

.



Relevant Pages