Search code examples
tomcatlocalhost

Can't access Tomcat using IP address


I'm running a Tomcat 5.5 instance (port 8089) on Windows 7.

The server runs correctly if I open http://localhost:8089/ but it gives me an error (Connection refused) on http://192.168.1.100:8089/

I thought it was a firewall issue, so I disabled it, but I still have no luck.


Solution

  • You need to make Tomcat listen to 192.168.1.100 address also.

    If you want it to listen to all interfaces (IP-s) just remove "address=" from Connector string in your configuration file and restart Tomcat.

    Or just use your IP to listen to that address address=192.168.1.100 in the Connector string