Exemplo n.º 1
0
Arquivo: Ips.cs Projeto: xiongeee/BBX
        public static string GetLocation(IpInfo info)
        {
            string iPValue = String.Format("{0}.{1}.{2}.{3}", info.Ip1, info.Ip2, info.Ip3, info.Ip4);
            var    addr    = Ip.GetAddress(iPValue);

            if (!String.IsNullOrEmpty(addr))
            {
                return(addr);
            }

            return("未知地址");
        }
Exemplo n.º 2
0
Arquivo: Ip.cs Projeto: ligengrong/X
 public override String GetAddress(IPAddress addr) => Ip.GetAddress(addr);