Windows: Cannot Map Drive to IP Address
Attempts to connect to a SMB share via a dotted IP address fail:
The request is not supported.
net use * \\192.168.1.4\data /p:n
System error 53 has occurred.
The network path was not found.
However using the NetBIOS name is successful:
net use * \\SERVER02\data /p:n
Drive Y: is now connected to \\SERVER02\data.
The command completed successfully.
In the Security Event Log of the target server, Event Id 4625 is logged as an Audit Failure:
Failure Reason: An Error occured during Logon.
Sub Status: 0xC0000418
0xC0000418 is STATUS_NTLM_BLOCKED.
What's happening is that when connecting via an IP address, the connection is trying to authenticate via NTLM, but when using a NetBIOS or FQDN, Kerberos is used.
If you must use the dotted IP notation, the remedy is to add the name of the server to the exceptions list under the policy Network security: Restrict NTLM: Add server exceptions in this domain. However this should only be done if there is no other option as it is now best practice to disallow NTLM authentication in Windows networks.
Another way to think of this issue is as a quick test to see if NTLM is enabled.