• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

accessing the local application through web browser

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using jetty 6.1 to deply my application locally. It runs locally. So to access it through IE, I type in the IP address of my machine an the port defined in the application and the JSP page. For e.g. http://10.3.20.456:9000/admin/myapp
but I am unable to access it from my PC on which it's deployed.I get IE can not display the page error.
But the same application is accessible from my other desktop.\I even tried accessing it as http://localhost:9000/admin/myapp and http://127.0.0.1:9000/admin/myapp.

What is preventing to access it from local box but a remote machine can access it.

thanks
Trupti
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I usually see the opposite of this question asked: http://localhost and http://127.0.0.1 work but http://hostname and http://99.99.99.99 don't.

The key is in how the app server opens the port. If it opens port using IP address 0.0.0.0, then the port is bound to all IP addresses known to the system. Thus the port is bound to 127.0.0.1 and all IP addresses assigned to all of the NICs. On the other hand, if the app server opens the port using a specific IP address, such as 99.99.99.99, then you can access the port only via that IP address - in other words, 127.0.0.1 cannot be used.

You can use netstat (or tcpview on Windows) to see how the app server opened the port.

However, I do not understand why remote systems can access http://10.3.20.456 but when on that system (the one with that IP address) that URL is not valid. But then again there could be something screwy in the network. I would first try a ping and then a tracert to try to solve the problem.
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic