Microsoft .NET have a mature API to play and code against the network you are connected. All the information you need to do that resides under System.Net and its sub namespace. This article will cover the simplest part of all and provide a way on how to get the IP Address of (my) machine using C# and LINQ. I know you would have read tons of pages with the same title, but with LINQ is the special on plate today. Lets get familiar with few object first. The static class DNS under System.Net namespace provides the information about the Domain Name System (DNS) of any system for IP Address provided or for the local system. This class can be used to get the Host name of the local machine or can also be used to reterive the IP Address of the machine if host name is already known. » Read more