我一直在处理一项申请,如果我的摄影测量和测验科由于英国航天中心而倒台,那么开始这项工作可能很缓慢。 我的ISP昨天被缩减了3个小时,因此,我对我所补充的这部法典不抱多少看法,直到我发现,开始这项工作总是缓慢。 该守则本应归还你的IP地址,我对链接的解读表明,这一联系应当立即进行,但至少是我的机器。
昨天,在互联网上台之前,我把我升级(纪念)升格为XP SP3,并存在其他问题。
因此,我的问题/要求:
- Am I doing this right?
- If you run this on your machine does it take 39 seconds to return your IP address? It does on mine.
另一项说明是,我进行了包装,第一份申请是NOT在电线上,但第二次是这么做的,得到了迅速的答复。 因此,问题是,除了大脑外,我还失踪的“三党”中所发生的情况。
最后一份说明。 如果我解决全国住户调查,情况就好了。
Public Class Form1
http://msdn.microsoft.com/en-us/library/system.net.dns.gethostaddresses.aspx
excerpt
The GetHostAddresses method queries a DNS server
for the IP addresses associated with a host name.
If hostNameOrAddress is an IP address, this address
is returned without querying the DNS server.
When an empty string is passed as the host name,
this method returns the IPv4 addresses of the local host
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim stpw As New Stopwatch
stpw.Reset()
stpw.Start()
originally Dns.GetHostEntry, but slow also
Dim myIPs() As System.Net.IPAddress = System.Net.Dns.GetHostAddresses("")
stpw.Stop()
Debug.WriteLine(" " & stpw.Elapsed.TotalSeconds)
If myIPs.Length > 0 Then Debug.WriteLine(" " & myIPs(0).ToString)
debug
39.8990525
192.168.1.2
stpw.Reset()
stpw.Start()
originally Dns.GetHostEntry, but slow also
myIPs = System.Net.Dns.GetHostAddresses("www.vbforums.com")
stpw.Stop()
Debug.WriteLine(" " & stpw.Elapsed.TotalSeconds)
If myIPs.Length > 0 Then Debug.WriteLine(" " & myIPs(0).ToString)
debug
0.042212
63.236.73.220
End Sub
End Class