This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing a JSP from different machine

 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can machine B ping machine A? (are they on the same network, do they have the right mask etc)
 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Windows OS (XP+) do have a build in firewall - unless you have disabled it.
 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rane,

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

Thanks,
Mats.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic