Networking Forums

Networking Forums > Computer Networking > Linux Networking > windows sees 2 localhost's...

Reply
Thread Tools Display Modes

windows sees 2 localhost's...

 
 
Rick Retter
Guest
Posts: n/a

 
      10-17-2003, 12:30 AM
Hi.
not sure i'm in the right group but here goes...
i have a windows 2000 (professional) box networked with a red hat 9 box.
the 2000 box is running IIS (as \\localhost , the default).
by running samba i can see the windows box and directorie(s), but the
reverse is not true.
windows cannot see the linux box - it complains about duplicate server names
(or something like that). i think it cannot resolve the two \\localhost 's
on the network - one on red hat, the other on windows 2000 (IIS).

any ideas on how to resolve this?



 
Reply With Quote
 
 
 
 
Paul Lutus
Guest
Posts: n/a

 
      10-17-2003, 12:45 AM
Rick Retter wrote:

> Hi.
> not sure i'm in the right group but here goes...
> i have a windows 2000 (professional) box networked with a red hat 9 box.
> the 2000 box is running IIS (as \\localhost , the default).
> by running samba i can see the windows box and directorie(s), but the
> reverse is not true.
> windows cannot see the linux box - it complains about duplicate server
> names
> (or something like that). i think it cannot resolve the two \\localhost
> 's on the network - one on red hat, the other on windows 2000 (IIS).
>
> any ideas on how to resolve this?


Yes, the solution is simple. Do not use "localhost" as a network name, ever.
"localhost" is reserved for the loopback self-identity address 127.0.0.1,
and only that.

--
Paul Lutus
http://www.arachnoid.com

 
Reply With Quote
 
Hank Kingwood
Guest
Posts: n/a

 
      10-17-2003, 02:40 AM
> Hi.
> not sure i'm in the right group but here goes...
> i have a windows 2000 (professional) box networked with a red hat 9 box.
> the 2000 box is running IIS (as \\localhost , the default).
> by running samba i can see the windows box and directorie(s), but the
> reverse is not true.
> windows cannot see the linux box - it complains about duplicate server names
> (or something like that). i think it cannot resolve the two \\localhost 's
> on the network - one on red hat, the other on windows 2000 (IIS).
>
> any ideas on how to resolve this?


It is unlikely that the host name "localhost" is causing the problem.
Typically, every networked Linux and Windows machine has a host name
"localhost" that points to the local machine, 127.0.0.1. If you "ping
localhost" you are in fact pinging the machine ping was initiated from.
If you connect a web browser to localhost, you will be connecting to
the web server on the machine the web browser is on. Does that make sense?

So, get the IP address of the Windows machine and the IP address of the
Linux machine. Try connecting to the separte machines using the IP
addresses. Hopefully that will work. If it does that means your
networking is good and there is possibly a problem with your host names
or your are using the wrong host names.

By the by, what are the following:
- host name of the Windows machine
- host name of the Linux machine
- IP address of the Windows machine
- IP address of the Linux machine

If the IP addresses are not on a private LAN, please mask the IP
address, i.e.: if your public IP address is 1.2.3.4, send x.x.x.4.

Thanks,
Hank

 
Reply With Quote
 
Paul Lutus
Guest
Posts: n/a

 
      10-17-2003, 06:38 AM
Hank Kingwood wrote:

>> Hi.
>> not sure i'm in the right group but here goes...
>> i have a windows 2000 (professional) box networked with a red hat 9 box.
>> the 2000 box is running IIS (as \\localhost , the default).
>> by running samba i can see the windows box and directorie(s), but the
>> reverse is not true.
>> windows cannot see the linux box - it complains about duplicate server
>> names
>> (or something like that). i think it cannot resolve the two \\localhost
>> 's on the network - one on red hat, the other on windows 2000 (IIS).
>>
>> any ideas on how to resolve this?

>
> It is unlikely that the host name "localhost" is causing the problem.


In fact, this is the problem, very likely the only problem. Local name
resolution is getting confused by two uses of the same name. The name
"localhost" must be reserved for the loopback interface. It cannot be used
for anything else without confusing name resolution.

--
Paul Lutus
http://www.arachnoid.com

 
Reply With Quote
 
Hank Kingwood
Guest
Posts: n/a

 
      10-17-2003, 01:15 PM
>>>Hi.
>>>not sure i'm in the right group but here goes...
>>>i have a windows 2000 (professional) box networked with a red hat 9 box.
>>>the 2000 box is running IIS (as \\localhost , the default).
>>>by running samba i can see the windows box and directorie(s), but the
>>>reverse is not true.
>>>windows cannot see the linux box - it complains about duplicate server
>>>names
>>>(or something like that). i think it cannot resolve the two \\localhost
>>>'s on the network - one on red hat, the other on windows 2000 (IIS).
>>>
>>>any ideas on how to resolve this?

>>
>>It is unlikely that the host name "localhost" is causing the problem.

>
>
> In fact, this is the problem, very likely the only problem. Local name
> resolution is getting confused by two uses of the same name. The name
> "localhost" must be reserved for the loopback interface. It cannot be used
> for anything else without confusing name resolution.


Is localhost the NetBIOS name of one or more machines or made as a DNS
entry or assigned in /etc/hosts to multiple interfaces?

 
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
Localhost john Windows Networking 3 02-11-2008 01:31 PM
samba windows client sees foldes but has no right to write in folders bastian Linux Networking 2 04-08-2007 06:04 PM
Windows Sees No Wireless Networks. Marshall Tway Wireless Networks 3 01-14-2007 05:56 PM
Windows Explorer sees limited number of computers in a network workgroup =?iso-8859-2?Q?Ivan_B=FAtora?= Windows Networking 0 04-27-2005 03:47 AM
Windows Server 2003 SP1 IIS6 Trouble with localhost NTLM logons to subwebs Matthew Emsley Windows Networking 0 04-06-2005 04:02 AM



1 2 3 4 5 6 7 8 9 10 11