Can't access network share with name defined in hosts file
Posted
by Einar Egilsson
on Server Fault
See other posts from Server Fault
or by Einar Egilsson
Published on 2010-02-01T08:39:28Z
Indexed on
2010/04/08
0:03 UTC
Read the original article
Hit count: 260
network-share
|hosts-file
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?
© Server Fault or respective owner