我想从客户端IP地址解析域名。为了进行测试,我使用了stackoverflow,如下所示。但是当我使用ip来解析域名时,我仍然只能得到IP作为结果。String ip = InetAddress.getByName("www.stackoverflow.com").getHostAddress(); System.out.println(InetAddress.getByName(<em
如何使用TCP创建数据流以查找某个域的IP?在论坛上搜索并尝试这样的方法:IPEndPoint ep = new IPEndPoint(IPAddress.Parse("8.8.8.8"),System.Text.ASCIIEncoding.Default.GetBytes(query);var receivedData = client.Receive(ref ep);
我不