foreach (NetworkInterface netif in NetworkInterface.GetAllNetworkInterfaces()) { IPInterfaceProperties properties = netif.GetIPProperties(); foreach (IPAddressInformation unicast in properties.UnicastAddresses) { Console.Writeline(unicast.Address); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)