Net use with hostname fails, IP address works fine

Posted: 03-04-2008, 12:12 PM
Vista Business standalone machine
Share named "SHAR" is defined
IP address of machine = 192.168.2.132
Name of computer=USERPC

HOSTS file contains
192.168.2.132 bsserver

These commands work:
net use L: \\localhost\SHAR
net use L: \\192.168.2.132\SHAR

This command fails (after prompting for the user/password):
net use L: \\bsserver\SHAR
System error 86
The specified network password is not correct

The same experiment on Windows XP yields "Error 1326 - unknown user name of
bad password"...
In both cases I can ping bsserver, so name resolution works.

Any ideas?

TIA,

Luc K

Reply With Quote

Responses to "Net use with hostname fails, IP address works fine"

Robert L. \(MS-MVP\)
Guest
Posts: n/a
 
Re: Net use with hostname fails, IP address works fine
Posted: 03-04-2008, 02:31 PM
\\localhost\SHAR and \\bsserver\SHAR are different if you do these command
in a remote computer. Post back back with the result of this command ping -a
192.168.2.132.

--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com


"Luc Kumps" <NOkumpsSPAM@telenet.be> wrote in message
news:OtpnGEffIHA.4120@TK2MSFTNGP06.phx.gbl...
> Vista Business standalone machine
> Share named "SHAR" is defined
> IP address of machine = 192.168.2.132
> Name of computer=USERPC
>
> HOSTS file contains
> 192.168.2.132 bsserver
>
> These commands work:
> net use L: \\localhost\SHAR
> net use L: \\192.168.2.132\SHAR
>
> This command fails (after prompting for the user/password):
> net use L: \\bsserver\SHAR
> System error 86
> The specified network password is not correct
>
> The same experiment on Windows XP yields "Error 1326 - unknown user name
> of bad password"...
> In both cases I can ping bsserver, so name resolution works.
>
> Any ideas?
>
> TIA,
>
> Luc K
>
Reply With Quote
Luc Kumps
Guest
Posts: n/a
 
Re: Net use with hostname fails, IP address works fine
Posted: 03-04-2008, 02:44 PM
Thanks for your assistance!
> \\localhost\SHAR and \\bsserver\SHAR are different if you do these command
> in a remote computer.
I don't do it on a remote computer, I do it LOCALLY.
The IP adress of the computer on which I'm doing this is 192.168.2.132,
which is defined to correspond with BSSERVER in the HOSTS file.
> Post back back with the result of this command ping -a 192.168.2.132.
It says
Pinging bsserver" [192.168.2.132] with 32 bytes of data:"

As no network traffic is involved (I'm doing this on a *single* machine),
response time is <1ms.

Are you able to connect to a share on your LOCAL computer, using a host name
which is NOT the Computer Name, but which was defined in HOSTS to correspond
to the IP address of the local system?

Luc K

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
No Internet Connection--LAN Works fine DanD Windows Vista Networking & Sharing 2 10-09-2007 11:56 PM
How I did it, and it works fine. Happy w/Microsoft :) Windows Vista Install & Setup 1 06-20-2006 01:06 AM
FAT32 works fine. Michael Cecil Windows Vista 1 06-11-2006 07:32 PM
WinXP with no SP works fine, but with SP2 =( Star Fleet Admiral Q Windows XP Configuration & Management 1 06-26-2004 04:17 PM
Wireless network works fine until.... Sue Henderson Windows XP Network & Web 3 08-07-2003 04:56 AM