Created
September 12, 2013 12:42
-
-
Save jmarmolejos/6536685 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = "http://bot.whatismyipaddress.com/"; | |
var request = WebRequest.Create(url); | |
var res = (HttpWebResponse)request.GetResponse(); | |
var reader = new StreamReader(res.GetResponseStream()); | |
string ip = reader.ReadToEnd(); | |
return ip; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment