Use the Static method Dns.GetHostAddresses to get list of computer IP Addresses. First, you have to get the Computer name. Then pass it as parameter to the Dns.GetHostAddresses method.
Required Namespace:
System.Net
String ComputerName= Dns.GetHostName();
IPAddresses[] localIPs = Dns.GetHostAddresses(ComputerName);




