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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top