C# Getting your IP address

Sometimes you need to know your ip address in code. With the following snippet you can!

 var hostName= new HostInformation();  
 var address = Dns.GetHostEntry(hostName).AddressList[0].ToString();  


Popular posts from this blog

C# Form Application in Kiosk Mode/Fullscreen

C# using a transaction with ODBC

Notify Icon Text vs BalloonTipText