Support Forums

Full Version: [C#] Get External IP.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Nice source Blair.
Nice source, bro keep it up. i like these tutorials!
(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