I have an issue where I have a remote IP Address, and I need to discover the
local network interface IP Address which is viewable to the remote IP Address
(for UPnP document purposes). For example, if I have the remote IP Address
10.0.0.4, and I know all of the local IP Addresses:
127.0.0.1
10.0.0.5
10.1.0.20
192.168.0.5
157.54.185.126
How can I determine which of these IP addresses, without connecting to the
remote machine, that if broadcast over that network interface, the remote
device could see the broadcast and also connect to the local machine at that
IP address. I was looking at some properties in the NetworkInterface class
and stuff, but nothing was obvious to me. I hope I am explaining the problem
well enough.
Thanks