Long Connection Delays on Windows Platforms.
From Sun FAQ:
“Most likely, your host’s networking setup is incorrect. RMI uses the JavaAPI networking classes, in particular java.net.InetAddress, which will cause TCP/IP host name lookups for both host to address mapping and address to hostname. On Windows, the lookup functions are performed by the native Windows socket library, so the delays are not happening in RMI but in the Windows libraries. If your host is set up to use DNS, then this could be a problem with the DNS server not knowing about the hosts involved in communication and what you are experiencing are DNS lookup timeouts. If this is the case, try specifying all the hostnames/addresses involved in the local file\winnt\system32\drivers\etc\hosts or \windows\hosts. The format of a typical host file is:
IPAddress Server Name
e.g.: 220.127.116.11 homer.somecompany.com
This should reduce the time it takes to make the first lookup.”
In addition, incorrect settings of the Subnet Mask and Gateway address may result in connection delays and failures. Verify with your Network Administrator that these settings are correct.