I have a network share on a machine that I can only reach by IP address. I then defined an alias for the IP in my hosts file so I could use that instead of the IP but then I can't log on to the share, I just get the logon prompt again and again. So basically this:


works but this


doesn't. myalias is defined in c:\windows\system32\drivers\etc\hosts as myalias

And I can use the alias for remote desktop without problems.

Can anyone tell me why this doesn't work for fileshares?

  • Ok, it seems the editor ate my double backslashes at the beginning of the shares. Testing: \\someserver – Einar Egilsson Feb 1 '10 at 8:40
  • Does the alias match the machine name? – Maxwell Feb 1 '10 at 9:35

The problem is that the server doesn't know that it should respond to incoming SMB traffic destined for the alias name. Basically, the server isn't "listening" for SMB requests targeted at the alias. Follow the steps in this article to get it working:


Disable strict name checking on the file server:

Registry location: 
DWORD name: DisableStrictNameChecking
DWORD value: 1

Unfortunately, hosts files and DNS work fine for most services, but netbios based requests are not one of them. We've also had this issue, and possibly the best solution I can suggest would be for you to implement DFS if you positively must create a file-share "alias".

If that's not possible, then you might want to explore the possibilty of setting up an NFS or SSHfs gateway, either of which will work fine with your alias.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy