using System.Net;

        public static void domain2ip()
        {
            try
            {

    IPHostEntry ipHostInfo = Dns.Resolve("www.163.com");
            IPAddress myip = ipHostInfo.AddressList[0];
            }
            catch (Exception e)
            {       
            }
        }

相关文章:

  • 2021-09-30
猜你喜欢
  • 2021-10-04
  • 2021-10-19
  • 2021-12-21
  • 2021-12-21
  • 2022-01-29
  • 2021-11-04
相关资源
相似解决方案