• 0

External IP address


Question

Hello,

I'm using c# .net and I would like to know how can I get my external IP. I was looking over the Internet and couldn't find a solution :wacko: Maybe somebody here knows how to do it? I can also try to convert a VB .NET code so if you know how to do it with VB that's OK.

Thanks in advance for your answers :) I really appreciate this.

Link to comment
Share on other sites

Recommended Posts

  • 0

It's a much better idea to put a script on a web site and read it in code than use the code suggested above, because some people might be on NATs or on proxies.

For example, your code could download the content of whatismyip.com and parse the IP out of it.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.