Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="ip"></param>
 /// <returns></returns>
 public static string GetIPAddressInfo(string ip)
 {
     try
     {
         IpList list = new IpList();
         list.IP = ip;
         return(list.IPAddInfo().Replace("CZ88.NET", ""));
     }
     catch (Exception ex)
     {
         return(string.Empty);
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="ip"></param>
 /// <returns></returns>
 public static string GetIPAddress(string ip)
 {
     try
     {
         IpList list = new IpList();
         list.IP = ip;
         return(list.IPLocation().Replace("本机地址", "局域网IP"));
     }
     catch
     {
         return(string.Empty);
     }
 }