Ejemplo n.º 1
0
 public void GetIPV4AddressesTest()
 {
     string[] ips = NetworkAdapter.GetIPV4Addresses(NetworkAdapter.GetActiveConnectionID());
     if (ips != null && ips.Length > 0)
     {
         foreach (string ip in ips)
         {
             Console.WriteLine(ip);
         }
     }
 }
Ejemplo n.º 2
0
 public void GetActiveConnectionIDTest()
 {
     Console.WriteLine(NetworkAdapter.GetActiveConnectionID());
 }