Article ID: 182620
Article Last Modified on 12/4/2003
APPLIES TO
- Microsoft Internet Explorer 4.0 128-Bit Edition
- Microsoft Internet Explorer 4.01 128-Bit Edition
- Microsoft Internet Explorer 4.0 128-Bit Edition
- Microsoft Java Virtual Machine
- Microsoft Software Development Kit for Java 2.02
- Microsoft Software Development Kit for Java 2.01
- Microsoft Internet Explorer 4.01 128-Bit Edition, when used with:
This article was previously published under Q182620
SYMPTOMS
When Internet Explorer 4.0 or 4.01 loads an applet from a URL that begins
with an IP address, for example "http://172.23.21.38/my folder", as opposed to "http://example.microsoft.com", the class files of the applet download
very slowly, with a delay of roughly five seconds for each class file. The
name of each class file is displayed in the status bar as it downloads.
CAUSE
In this scenario, builds 2252, 2334, and 2339 of the Virtual Machine for
Java does a reverse lookup via DNS, using the IP address to get the host
name, each time it loads a class file. It queries several sources for the
name, receives a timeout for each one, and finally simply uses the IP
address without knowing the host name.
The delay for each class is relatively short, but it can add up to several
minutes to download a complex applet.
RESOLUTION
The available workarounds include the following:
- If the Web server has a name, use that in the URL you connect to.
- Provide a name for the Web server by adding it to a Domain Name Server
or to your HOSTS file. That name can even be a string that matches the
IP address.
- Place the applet classes in a CAB file. There will be a short delay
downloading the CAB file, but no further delay loading the applet.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in the Internet
Explorer 4.01 Service Pack 1 and SDK for Java 2.02.
REFERENCES
The HOSTS file is documented in the Windows 95 Resource Kit, in a section
titled HOSTS and LMHOSTS files for Windows 95.
Keywords: kbbug kbfix KB182620