Karthik M
Karthik M

Reputation: 89

Couldnt reach to Tomcat through HTTP

I have installed Tomcat 8.0.32 in Linux. Started the server without problem. I can see the server logs no problem.

It runs in 8008 port.

29-Feb-2016 13:42:51.406 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-0.0.0.0-8008"]

29-Feb-2016 13:42:51.418 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]

29-Feb-2016 13:42:51.419 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 1085 ms

But when I try http://ipaddress:8008/ I couldn't get the tomcat home page. But I do netstat I see its listening the port:

[root@localhost logs]# netstat -na | grep 8008

tcp        0      0 0.0.0.0:8008            0.0.0.0:*               LISTEN

Anyone get an idea, what could be the reason?

Upvotes: 1

Views: 286

Answers (2)

Karthik M
Karthik M

Reputation: 89

I found the problem... The port was not open.

Issued the below commands to open the port and I am able to access it now.

iptables -I INPUT -p tcp --dport 8008 --syn -j ACCEPT
iptables -I OUTPUT -p tcp --dport 8008 --syn -j ACCEPT

Upvotes: 0

stdunbar
stdunbar

Reputation: 17435

Are you sure that port 8008 is allowed through your firewall? Based on your IP I can't tell exactly what service you're using but 8008 is not a standard port to allow through. 8080 is the standard Tomcat port and 80 is the normal HTTP port.

Upvotes: 2

Related Questions