Can't access network share with name defined in hosts file
- by Einar Egilsson
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?