Re: Localhost problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yes,
that's right what you're saying but ... i have in lmohosts (not
lnhosts.sam) an entry:
127.0.0.1 localhost
and it's not working.

Regards,
Dariusz Hoszowski

"John Wunderlich" <jwunderlich@xxxxxxxxx> wrote in message
news:Xns988ABE15D1A3Cwunderpsdrscraytheon@xxxxxxxxxxxxxxxxx
"Chuck" <none@xxxxxxxxxxx> wrote in message
news:6t7rm21tmaec31malpinls7iotk99hk5s9@xxxxxxxxxx
On Wed, 29 Nov 2006 10:01:47 +0100, "Dariusz Hoszowski"
<dh@xxxxxx> wrote:

Hi,
i didn't find any information why \\localhost doesn't work on
Windows XP
(when i ping localhost everything looks fine IP 127.0.0.1 is
returned and all 4 pings are ok). I have checked all my IP
settings, DNS, WINS, hosts file, etc. All what i can check seems
to be ok. I have installed new Windows
XP SP2 (without any KB - i was thinking that it should be a KB
problem) but
it's also not working. I have checked \\localhost on Windows
Server 2003 SP1
and ... voila works fine. I do some investigation and check
information in technet, microsoft site and google ... found
nothing about that (or i have missed something). Could someone
tell me why \\localhost doesn't work on Windows XP SP2 (and i
have forgotten, Windows firewall was turned off on all my test
machines). When i put \\127.0.0.1 in explorer (or
\\computer-netbios-name) then local shares are displayed, but
\\localhost doesn't work - strange ... The error is (Windows
cannot find "\\localhost". Check the spelling and try again, or
try searching for the item by clicking the Start button and then
clicking Search) .

Does anyone know why it's not working on Windows XP SP2 ?

Thanks,
Dariusz Hoszowski

Dariusz,

Look in Hosts. Is "localhost" defined there? Is that the only
Hosts file?
<http://nitecruzr.blogspot.com/2005/07/local-name-and-address-reso
lution-on.html>
http://nitecruzr.blogspot.com/2005/07/local-name-and-address-resol
ution-on.html

Is the absence of "localhost" the only symptom observed?

--
Cheers,
Chuck, MS-MVP [Windows - Networking]
http://nitecruzr.blogspot.com/
Paranoia is not a problem, when it's a normal response from
experience. My email is AT DOT
actual address pchuck mvps org.


"Dariusz Hoszowski" <dh@xxxxxx> wrote in
news:uhUcar8EHHA.1784@xxxxxxxxxxxxxxxxxxxx:

Chuck,
yes - there is only one hosts file. There is localhost
127.0.0.1 in it.
It is the only symptom i can observe (and it is not only in my
network but it seems to be also at my collegues networks).
Everything besides \\localhost works fine.

Regards,
Dariusz Hoszowski

There is a subtle difference here.

The "ping" routine is a TCP/IP client and therefore uses the "hosts"
file.

Using \\localhost in an explorer window is using NetBios (or NetBT)
protocol. NetBT does not use the "hosts" file, rather it uses the
"lmhosts" file. Most XP machines have a "lmhosts.sam" (sample) file
that can be used by renaming to remove the .sam extension. Then you
can add a line at the end similar to the line in the hosts file.

See:
"Differences Between the HOSTS and LMHOSTS Files in Windows NT"
<http://support.microsoft.com/kb/105997/en-us>

HTH,
John


.



Relevant Pages

  • Re: www.msn.com=your hostserver hasbeen hacked
    ... the instruction to delete a valid Windows file seems very ... why would someone who hacked your hosts file be so kind as ... > will bring up a list of programs to edit the file with. ... > lines from the file and type in: 127.0.0.1 localhost. ...
    (microsoft.public.security)
  • Re: www.msn.com=your hostserver hasbeen hacked
    ... > If you see this page your hosts file has been hacked. ... > all patches for your computer from the Windows Update Site ... > will bring up a list of programs to edit the file with. ... > lines from the file and type in: 127.0.0.1 localhost. ...
    (microsoft.public.security)
  • Re: Localhost problem
    ... Thanks for verifying that the Athlon works for localhost. ... "Dariusz Hoszowski" wrote: ... Windows Server 2003, but returns the expected error in XP SP2. ... Microsoft Windows 2000 Advanced Server ...
    (microsoft.public.windowsxp.network_web)
  • Re: Localhost problem
    ... (when i ping localhost everything looks fine IP 127.0.0.1 is ... settings, DNS, WINS, hosts file, etc. ... I have installed new Windows ... Is "localhost" defined there? ...
    (microsoft.public.windowsxp.network_web)
  • Re: Problem with the HOSTS file
    ... localhost ... "Lak" wrote in message ... > not reading the entried from this HOSTS file. ... I am having Windows 2000 ...
    (microsoft.public.win2000.general)