This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat not responding to 127.0.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not responding to 127.0.0.1 " Watch "Tomcat not responding to 127.0.0.1 " New topic
Author

Tomcat not responding to 127.0.0.1

sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

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.


Regards, Sud.
SCJP 5 ScjpFAQ JLS
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Your second URL is missing the port.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

m sorry, i could not understand you.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"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

Joined: Apr 02, 2008
Posts: 823

yes i got it now.

sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

Thank you very much dear.
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

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.

John Schretz
Ranch Hand

Joined: Sep 10, 2008
Posts: 188
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

Joined: Apr 02, 2008
Posts: 823

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

Joined: Sep 10, 2008
Posts: 188
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

Joined: Apr 02, 2008
Posts: 823

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?

Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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.


SCJP, SCWCD.
|Asking Good Questions|
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

Yes i have checked in the details. I have an updater which updates my ip every time i login.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat not responding to 127.0.0.1
 
Similar Threads
Copy the content(view source) of an html file running in browser
Localhost leads to nowhere
IIS and TOMCAT
Windows Authentication Using Tomcat 5.0
The requested URL could not be retrieved : connection failed (111) connection refuse