Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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:

\\172.17.0.48\SomeShare

works but this

\\myalias\SomeShare

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

172.17.0.48 myalias

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

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

share|improve this question
    
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

2 Answers 2

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:

http://support.microsoft.com/kb/281308/

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.