Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Accessing a JSP from different machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Accessing a JSP from different machine" Watch "Accessing a JSP from different machine" New topic
Author

Accessing a JSP from different machine

Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
Hi all,

I created an application and accesing it using

http://localhost:8080/Test/init.jsp

OR

http://192.134.12.51:8080/Test/init.jsp

But,
When i access the same application from a different machine, using IP address,the page is not displayed.

What can be the problem?

Thanks,
Mats


Thanks,
Mathews
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Have you set up port 8080 in the firewall on the machine where the JSPs are running from??

Or maybe you need to port forward port 8080 in your router to the machine where the JSPs are running from...


Regards, Rene Larsen
Dropbox Invite
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

can machine B ping machine A? (are they on the same network, do they have the right mask etc)
Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
hi,

Have you set up port 8080 in the firewall on the machine where the JSPs are running from?? ==> default port is 8080, so where do we need other configurations.

I can ping from the other machine.

Thanks,
Mats.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

What are the OS of the machine (Windows, Mac, Linux, etc)??

What kind of firewall are you using (Norton, ZoneAlarm, etc)

Can machine B call telnet on port 8080 on machine A? (telnet 8080)??
Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
Rene,

I am using Widows OS and no firewall.

I am not able to connect using telnet <machine name>. What can be the problem.

Thanks,
Mats.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Windows OS (XP+) do have a build in firewall - unless you have disabled it.
Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
Rene,

I have not disabled the firewall. i am not able to do telnet

telnet 192.156.2.22

it is giving following error :

Connecting To mats...Could not open connection to the host, on port 23: Connect failed.

Please tell me is there any tomcat configuration settings to be changed, or any other machine specific confiration problem?

Thanks,
Mats.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Originally posted by Mathews P Srampikal:
Rene,

I have not disabled the firewall. i am not able to do telnet

telnet 192.156.2.22

it is giving following error :

Connecting To mats...Could not open connection to the host, on port 23: Connect failed.

Please tell me is there any tomcat configuration settings to be changed, or any other machine specific confiration problem?

Thanks,
Mats.


With telnet you can check if a specific port is responding - in this case you should check port 8080.

This is done be typing then you should get a 'new' prompt, which you can exit with 'CTRL + C' (it can take some time before it will exit - but it will).

If you don't get a new prompt, then I will suggest that you add port 8080 to your windows firewall.

How to Configure Windows Firewall on a Single Computer
Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
Rane,

Thank you. i added the port 8080 and it is working now.

Thanks,
Mats.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing a JSP from different machine
 
Similar Threads
Head First Sample Code
How to give a name to the web Application
compile?????
servlet is not available
tomcat for windows 98