hosts.sam is a sample file...'hosts' is the important one. It should contain a line like the following:
127.0.0.1 localhost If it does not contain this line, add it. If that line is present then the lookup of 'localhost' _should_ work. Given that you're on windoze, have you tried rebooting (I'm guessing you probably have)? -chris -----Original Message----- From: JS [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 2:13 PM To: [EMAIL PROTECTED] Subject: RE: no localhost but 127.0.0.1:8080 works Thank you to all those who replied to my earlier query. Unfortunately, I'm still not having any luck. >From the advice given, I have a "hosts.sam" file and a "hosts" (note, no extension) in my C:\windows directory. I am using Win 98 and Tomcat 4 Is there any other reason as to why localhost:8080 would not work, my port reference in server.xml is still 8080 as well so I see no reason for the problems. Thanks again > Of course, if you use my example path for winnt below be sure to lean > the last two name seperators to the left instead of the right...my > fingers just have trouble with those sometimes... > > -chris > > -----Original Message----- > From: Halstead, Chris > Sent: Friday, April 04, 2003 1:25 PM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: RE: no localhost but 127.0.0.1:8080 works > > > If you are on Windoze NT/2000 check > c:\winnt\system32\drivers/etc/hosts. I think the Win9x variants use > c:\windows\etc or c:\windows\system\etc, I don't remember which. The > hosts file there should have an entry for 'localhost' that maps to > 127.0.0.1. > > -chris > > -----Original Message----- > From: JS [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 1:16 PM > To: [EMAIL PROTECTED] > Subject: no localhost but 127.0.0.1:8080 works > > > Hi Group, > I have a problem here, my setup no longer responds to > http://localhost:8080/blahblah.....It works if I use the IP addy, > 127.0.0.1:8080, but I think this is causing some problems within tomcat > with its own internal references. > Does anyone know how I can fix this. I vaguely recall reading about a > "hosts" file in System32 folder of windows but cant remember for the > life of me what it was talking about. > Thanks > JS > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
