• 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

Tomcat not responding to 127.0.0.1

 
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I write this it works fine.



But when i replace it with



it says page not found. What is the difference and where is it?

Please help.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your second URL is missing the port.
 
sudipto shekhar
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
m sorry, i could not understand you.
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"localhost" maps to the lookback address, which is 127.0.0.1. So:

Are essentially the same address.

However, what you have is:


In the first you specify a port (a port is basically the "local" address, i.e. the address in the context of localhost) in the second you do not.
 
sudipto shekhar
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes i got it now.

 
sudipto shekhar
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much dear.
 
sudipto shekhar
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually what i am up to is I have deployed a servlet in the tomcat server and i want to access my site over the internet.
I have created the server on my machine and the ip address is the fixed ip that i get from the service provider.

What i used was http://129.134.165.225:8080/myapp/index.html .
But it did'nt work!
I could not figure it out.
Please help.

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you most likely have to configure the firewall on:

1. your router
2. any software firewall

look at the port forwarding section in the router
Forward port 8080 to the internal ip address of the computer tomcat is on
 
sudipto shekhar
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well i am quite unsure about networking and i do not know how to do that.please help me as i try to do it on my own. where do i configure my firewall?in my system i have windows xp professional and my win firewall is disabled. And how do i find and forward the internal ip?

It will be a great help to me.
Thnx.



[ October 31, 2008: Message edited by: Sudipto Shekhar ]
[ October 31, 2008: Message edited by: Sudipto Shekhar ]
 
John Schretz
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well first you would need a physical router connected to your network. something like a linksys router. If you are using a cable modem, sometimes the modem and router are built into one. if you go into your browser and type 192.168.1.1( which is pretty much the default unless the router was set up different) it should go to the homepage of the router. It will ask you to login. Again if you didnt set it up you would need to check with the manufacturer to get the default login/ password. From there it would be best to just contact the router manufacturer and have them walk you through port forwarding of port 8080 using tcp. Without knowing you hardware setup thats about all the help i can give.
[ October 31, 2008: Message edited by: John Schretz ]
 
sudipto shekhar
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a broad band connection through a ZTE modem ZTE (ZXDSL831 II).
I have deployed the proj on a Apache HTTP Server 2.0.
I have configured the server and its working on my machine if i write my ip (http://173.202.453.284/) in the url space.but it's not working from another machine over the internet. what should i do?

 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Every time you connect to your broad band connection, you get a different IP, did you check with the different IP addresses?

And as Paul already said above, the request URL must be complete including the port number in order to work.
 
sudipto shekhar
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes i have checked in the details. I have an updater which updates my ip every time i login.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic