The server should be accessible directly from the host on which it is running (localhost); for example, using the default port, 8080:
A server instance running on localhost may not be accessible if the server host machine is connected to the web through a proxy. To solve this problem, do one of the following:
Set the browser to bypass the proxy server when accessing localhost. Refer to the browser's help system for information on how to do this.
Use the fully-qualified host name or IP address of your system; for example:
On Microsoft Windows — On the desktop, right-click My Computer and select Properties from the pop-up menu. A System Properties dialog is displayed. Click Network Identification to see the computer name.
On Solaris or Linux — Type hostname at the command prompt.