Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: tomcat6
PostPosted: Wed Jun 12, 2013 10:53 pm 
Offline
Newbie

Joined: Wed Jun 12, 2013 10:47 pm
Posts: 2
Hi,

I cannot seems to connect to <ip>:8080 . It might be due to firewall problem. I need advise here. Had been trying out for days. But when I Curl <ip>:8080 it returns the page of "It works!" . However, when i access via my desktop browser <ip>:8080, I cannot access the tomcat page.


Top
   
 Post subject: Re: tomcat6
PostPosted: Thu Jun 13, 2013 12:04 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Are you running curl on the same machine as your desktop browser? What error message (if any) does your desktop browser give?


Top
   
 Post subject: Re: tomcat6
PostPosted: Thu Jun 13, 2013 1:02 am 
Offline
Newbie

Joined: Wed Jun 12, 2013 10:47 pm
Posts: 2
Hi,

Thanks for replying.

Are you running curl on the same machine as your desktop browser?
Yes I am running the same but I am running this in Putty which is connected to my Linode.

What error message (if any) does your desktop browser give?
Oops! Google Chrome could not connect to 106.187.101.107:8080


I cant seems to open the tomcat page from my desktop browser.


Top
   
 Post subject: Re: tomcat6
PostPosted: Thu Jun 13, 2013 11:00 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
On the server type: netstat -nptl

This will tell you which applications are listening to which ports. Look for the IP address before ':8080', this will tell you what IP address tomcat is using.


Top
   
 Post subject: Re: tomcat6
PostPosted: Fri Jun 14, 2013 11:51 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
It looks like the firewall on your Linode is blocking traffic to port 8080. You'll need to allow this for anyone on the outside to be able to reach Tomcat.

The reason that curl can reach it is because it is actually running on your Linode.


Top
   
 Post subject: Re: tomcat6
PostPosted: Wed Sep 04, 2013 12:20 am 
Offline

Joined: Wed Sep 04, 2013 12:14 am
Posts: 1
Right, when I create linode node and secured it using the default config as specified on Linode library page it only allows http 80, https 443 and ssh 22 ports. I had to add following line to my /etc/iptables.firewall.rules file to open 8080 port.
Code:
-A INPUT -p tcp --dport 8080 -j ACCEPT

and reactivate firewall rules to apply new change by executing following command
Code:
sudo iptables-restore < /etc/iptables.firewall.rules


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group