Net use with hostname fails, IP address works fine

L

Luc Kumps

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
 
R

Robert L. \(MS-MVP\)

\\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
 
L

Luc Kumps

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top