Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[C#] Get External IP.
#1
Code:
public static string getIP()
        {
            try
            {
                WebClient client = new WebClient();
                return client.DownloadString("http://whatismyip.com/automation/n09230945.asp");
            }
            catch (Exception) { return null; }
        }

grabbed from vBot

i think it was the first to use this.
Reply
#2
Nice source Blair.
Reply
#3
Nice source, bro keep it up. i like these tutorials!
SUPPORTFORUMS HELPER
Reply
#4
(08-14-2010, 01:45 PM)XACTLYSIN Wrote: Nice source, bro keep it up. i like these tutorials!

not really a tut.

more of a nice snippet.

Big Grin
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [C#] Get External IP through Webrequests [Intermediate] Mike 6 2,794 09-02-2010, 07:58 PM
Last Post: xHtmlPhP

Forum Jump:


Users browsing this thread: 1 Guest(s)