Im trying to run my web server in VPS based on ubuntu 14.04. As i tried before on other systems i can check if my tomcat is fine, by going to _http://myIp:8080 and see "It works" index page, but not this time. And honestly im going crazy because i cant figure whats wrong.
I installed tomcat just with command
apt-get install tomcat7
All was fine. I checked that port 8080
is open and went to _http://myIp:8080
- and nothing happens. I can't see 404 (that would mean that tomcat managed request) and I cant see "connection failed" (that would mean, that port is closed or thmthng). Connection is just hangs.
I tried to change tomcat port to 1666 (of course, i turned off ufw firewall) Reloaded server, and ROOT deployment was fine again. But i still cant get anything from my server (answer or error) _http://myIp:1666
Here is catalina start log.
And there is nothing except deployment logs.
I have reinstalled tomcat couple of times, but still no result.
UPD
i killed my old VPS and created new one. installed tomcat 7 via apt-get again so he is listening to 8080. and here is my grep result
netstat -na | grep -e 1666 -e 8080
tcp6 0 0 :::8080 :::* LISTEN
OMG doez it means that tomcat binds to ipV6 and i trying to get my page via ipV4?
UPD2
I created senenv.sh for tomcat with
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true"
and now my tomcat listening to ipv4 tcp. But still no result. When i trying to connect myIP:8080 there is nothing happens/
-na | grep -e 1666 -e 8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
UPD3
IT F***g works.
I missed why, i just spend 10 more minutes in internet after restarting tomcat, trying to find something to solve my problem. And then i tried to get myIP:8080 again - and i saw "It works" index page.