• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Accessing a JSP from different machine

 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rane,

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

Thanks,
Mats.
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic