Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have done a fresh install of Tomcat 7 on CentOS 6.2 system. Tomcat starts successfully without any errors in logs, but I am not able to access it on I get "cannot connect" message. The port is definitely not blocked (I have not yet setup any firewall) and the server is running.

Any suggestions what might be causing the problem?

share|improve this question
Hmm, so many things can be wrong. netstat -an |grep 8080 to start, to see if the tomcat process is actually listening on port 8080 on an available interface. Also, host to make sure you're hitting the IP you expect to hit for the server. – cjc Apr 24 '12 at 19:22
When I issue netstat -an |grep 8080 this is when tomcat is stopped: tcp 0 0 ::ffff: ::ffff: TIME_WAIT and this is when tomcat is running: tcp 0 0 :::8080 :::* LISTEN. The IP address is correct. – Eleeist Apr 24 '12 at 19:27
Are you sure there isn't an external firewall? Port 8080 is atypical for hosting services to open up, if they're restricting themselves to 22, 80 and 443. Also, if this is an EC2 instance, you would probably need to add that port into the Security Group that applies. Also, from where are you testing? From the box itself, some other machine on the network, through the Internet? Please update your Question with that info. – cjc Apr 24 '12 at 19:30
What's listening on 8080 while Tomcat is stopped? Check lsof -i. – Shane Madden Apr 24 '12 at 19:42
can you provide your server.xml? You have to configure tomcate to listen on in the server.xml. DOes it work when you try localhost? – Jason Huntley Apr 24 '12 at 20:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.