• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to connect to Tomcat using Static IP address  RSS feed

 
Edward Madrak
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am very very new to configuring Tomcat so I'm sorry if these are very newbie questions.

OS - Windows Server 2008 R2
Tomcat 5.5
JDK 1.6.0

After doing the basic configuration of tomcat using port 9090, I was able to get it to work using http://localhost:9090/x/x. Then when I try to use the servers static IP address from outside of the server (192.168.x.x:9090/x/x), I get 2 error messages depending if I have the windows firewall turned off or on.

Firewall Off:

The device or resource (192.168.x.x) is not set up to accept connections on port "9090".
Contact your network administrator Completed

The computer or device you are trying to reach is available, but it doesn’t support what you’re trying to do. This might be a configuration issue or a limitation of the device.

Firewall On:

resource (192.168.x.x) is online but isn't responding to connection attempts

I've also made sure to open port 9090 (UDP & TCP) for incoming traffic.

 
Edward Madrak
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even though no one responded, I wanted to put this out here in case someone else runs across this.


I found that there was a bug with Tomcat 5 running on Windows server 2008 64 bit. It attempts to use IPv6 over the default IPv4.

To resolve it, open up the Server.xml file and search for "<Connector". The top Connector will have the port that you're trying to communicate through, in my case 8080. In between port="8080" maxHttpHeaderSize="8192" type address="0.0.0.0" (Line will look like
port="8080" address="0.0.0.0" maxHttpHeaderSize="8192").

Restart Tomcat and you should be good to go.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward Madrak wrote:Even though no one responded, I wanted to put this out here in case someone else runs across this.



Thank you for posting the solution, that's indeed going to help others.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!