image

Buenas,

After a couple of minutes searching the internet a Code Snippet that allows me to find out the IP address with which I am connected to the internet, I realized that I don’t actually have to search from my computer to the outside, but from the outside inwards (quiet that I have not yet made anything).

There are many places that when you connect, tell you the IP address with which these emerging Internet, and some are as simple as http://icanhazip.com/ . This site only gives you your IP address, so we can process your output with the following code:

   1: public static string GetInternetIpAddress()
   2: {
   3:     var client = new WebClient();
   4:     var ip = client.DownloadString("http://icanhazip.com/");
   5:     return ip;
   6: }

Simplest impossible!

Disclaimer: there are other ways it, however if these under many levels and layers of IPs addresses, this option is the fastest ;)

 

Saludos @ La Finca

El Bruno

image image image

Leave a comment

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading