resolving own IP address

  • Thread starter Thread starter gs_sarge
  • Start date Start date
G

gs_sarge

Hi:

I'm writing a C# server application that needs to display its ip
address. I've used System.Net.Dns.Resolve("localhost") as the call
and iterated through the results, but it just gives me back the
loopback address 127.0.0.1. I have been looking all around for advice
online on how to resolve ones own IP address, but have found nothing.

Could anyone give me some pointers on how this might be accomplished?

Thanks in advance,

Steve
 
Back
Top