大家好!我的问题是: 主机有双网卡,怎么获取2块网卡的IP地址?
我知道用以下的方法可以获取一个IP,如何获取第二块网卡的IP呢?public static string GetIP()   //获取本地IP   
              {   
              IPHostEntry   ipHost   =   Dns.Resolve(Dns.GetHostName());   
              IPAddress   ipAddr   =   ipHost.AddressList[0];
              
              return   ipAddr.ToString();   
              }