Networking Forums

Networking Forums > Network Hardware > Home Networking > Windows XP TCP not using entry in HOSTS file

Reply
Thread Tools Display Modes

Windows XP TCP not using entry in HOSTS file

 
 
Martin Underwood
Guest
Posts: n/a

 
      01-07-2006, 11:46 AM
I was setting up a router today for a customer. As usual, I created an entry

192.168.0.1 router

in the hosts file so as to make it easier to access the router's config
page, especially for the customer after I've left, where it's a lot easier
to navigate to a "URL" of "router" rather than "192.168.0.1".

However Internet Explorer and also ping were unable to resolve this name: I
had to use the IP address rather than the name in the hosts file. Using the
IP address worked fine.

Everything looked sensible in the TCP configuration, though admittedly I
didn't do a thorough setting-by-setting comparion with my laptop. Can anyone
think what might be different about this PC from any other XP Home PC that
I've encountered in the past?


 
Reply With Quote
 
 
 
 
Adam Piggott
Guest
Posts: n/a

 
      01-07-2006, 01:12 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Underwood wrote:
> I was setting up a router today for a customer. As usual, I created an entry
>
> 192.168.0.1 router
>
> in the hosts file so as to make it easier to access the router's config
> page, especially for the customer after I've left, where it's a lot easier
> to navigate to a "URL" of "router" rather than "192.168.0.1".
>
> However Internet Explorer and also ping were unable to resolve this name: I
> had to use the IP address rather than the name in the hosts file. Using the
> IP address worked fine.
>
> Everything looked sensible in the TCP configuration, though admittedly I
> didn't do a thorough setting-by-setting comparion with my laptop. Can anyone
> think what might be different about this PC from any other XP Home PC that
> I've encountered in the past?


Strange! Programs (well, ping.exe at least) read the HOSTS file directly,
from my tests on Windows 2000. It could be that your HOSTS file has a file
extension (say .txt) and XP is set to hide file extensions, so the file
"HOSTS" may not actually exist.

You could have the security permissions setup incorrectly, or they could be
broken, which chkdsk would fix.

Maybe there's an illegal character in the hosts file entry (or maybe the
whole file) that's causing the problem, you could try creating a fresh one.
I assume you're entering the IP address, a tab, then the name? Have you typoed?

Try downloading Sysinternals' Filemon[1] and seeing if ping.exe is reading
the hosts file when you try to ping the host name.

[1] http://www.sysinternals.com/Utilities/Filemon.html

HTH

Adam Piggott,
Proprietor,
Proactive Services (Computing)
http://www.proactiveservices.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFDv8xV7uRVdtPsXDkRAiYCAJ42Q5CcnPSYiaH8XhU1Tw hKoJzVnQCfcnCG
k8dat+2+NA4GQKfFWQCA7FY=
=y9le
-----END PGP SIGNATURE-----
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xp hosts file andrew Home Networking 26 04-30-2008 10:22 AM
hosts file Mike Windows Networking 6 01-08-2005 11:17 PM
Log FIle Entry question Curious and under-trained Broadband Hardware 1 05-21-2004 07:49 PM
Hosts file in win 98 SE LBJ Windows Networking 1 12-10-2003 03:19 AM
Hosts file in Win 98 John McLean Windows Networking 2 09-08-2003 12:10 PM



1 2 3 4 5 6 7 8 9 10 11