Net use with hostname fails, IP address works fine

Discussion in 'Windows Vista Networking' started by Luc Kumps, Mar 4, 2008.

  1. Luc Kumps

    Luc Kumps Guest

    Vista Business standalone machine
    Share named "SHAR" is defined
    IP address of machine =
    Name of computer=USERPC

    HOSTS file contains bsserver

    These commands work:
    net use L: \\localhost\SHAR
    net use L: \\\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?


    Luc K
    Luc Kumps, Mar 4, 2008
    1. Advertisements

  2. \\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

    Bob Lin, MS-MVP, MCSE & CNE
    Networking, Internet, Routing, VPN Troubleshooting on
    How to Setup Windows, Network, VPN & Remote Access on
    Robert L. \(MS-MVP\), Mar 4, 2008
    1. Advertisements

  3. Luc Kumps

    Luc Kumps Guest

    Thanks for your assistance!
    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,
    which is defined to correspond with BSSERVER in the HOSTS file.
    It says
    Pinging bsserver" [] 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
    Luc Kumps, Mar 4, 2008
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.