aspose file tools*
The moose likes General Computing and the fly likes accessing a jsp file in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "accessing a jsp file in tomcat" Watch "accessing a jsp file in tomcat" New topic
Author

accessing a jsp file in tomcat

vikhyath reddy
Greenhorn

Joined: Dec 07, 2008
Posts: 20
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


~ Happy coding ~
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You forgot to tell about the error.

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


[BPSouther: Be nice]
vikhyath reddy
Greenhorn

Joined: Dec 07, 2008
Posts: 20
it says connection timed out ! ... guess its a network prob... but y isnt it opening across the internet ?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
vikhyath reddy
Greenhorn

Joined: Dec 07, 2008
Posts: 20
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Dec 07, 2008
Posts: 20
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

Joined: Dec 07, 2008
Posts: 20
hello people... please help ... it is still not working even after i have configured the above settings !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accessing a jsp file in tomcat