Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing a jsp file in tomcat

 
vikhyath reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everybody ... m trying to access the tomcat server of my friends computer which is located on a different subnet across the internet ... if i type the URL like http://IP_ADDRESS:8080/file.jsp then its givin me an error.. please help
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You forgot to tell about the error.

Please read this: http://faq.javaranch.com/java/TellTheDetails


[BPSouther: Be nice]
 
vikhyath reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it says connection timed out ! ... guess its a network prob... but y isnt it opening across the internet ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start by verifying that Tomcat is up and running by hitting it locally with http://localhost:8080/...

If that works, then I would check to make sure that there isn't a firewall running on the server machine; blocking port 8080.
 
vikhyath reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is perfectly working fine on the intranet but across the internet it isnt .. there is no port blocking access(coz its working fine in the intranet since i changed the port settings to "acceptable @ 8080" )
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the machine is part of a sub net, you'll probably need to configure your router to forward traffic on port 8080 (external IP) to the internal IP of the server machine.

This is no longer a Tomcat issue.
Moving to our General Computing forum.
 
vikhyath reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply ... i followed your instructions

i tried configuring ... this is what i have done ...


Name - tomcat

Source IP : 116.74.131.70 , Mask : 255.255.255.255

Destination IP : 192.168.15.2 Mask : 255.255.255.255

Port Start , Port End , Port Map : 8080

Protocol : TCP
 
vikhyath reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello people... please help ... it is still not working even after i have configured the above settings !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic