C# - Get public IP

By , 3/16/2017
(0 ratings)
Snippet to get your public IP
string externalip = new WebClient().DownloadString("http://icanhazip.com")
;
Console.WriteLine(externalip);
Tagged with ip, public, c#, easy.

Comments

 

Log in, to comment!