When hostname access works but IP-based access fails, the most likely difference is authentication: hostname access can use Kerberos, while IP-based access often cannot and may fall back to NTLM. If NTLM is blocked or restricted, the IP-based connection can return Access Denied even though the hostname works.
Use this investigation path on the SMB client:
- Check the current SMB error and target.
Look for the failing mapping and whether it reportsnet useSystem error 5,Access is denied, orSTATUS_ACCESS_DENIED (0xC0000022). - Inspect active or attempted SMB sessions.
This shows existing SMB connections and dialect details.Get-SmbConnection - Review the client SMB security posture.
Check settings related to signing, guest access, NTLM, and encryption.Get-SmbClientConfiguration - Review SMB client event logs. Open Event Viewer > Applications and Services Logs > Microsoft > Windows > SMBClient and inspect the Connectivity and Security channels. The event ID and message identify which SMB security condition is blocking access.
- Test the authentication-path difference directly.
- Connect using the server's hostname or FQDN.
- Connect using the server's IP address. If hostname works and IP fails, that matches the documented case where Kerberos is available by name but not by IP, causing the IP-based connection to depend on NTLM.
For NTLM restrictions, this is the documented condition:
- It applies when connecting by IP address, to a workgroup device, or to a NAS where Kerberos cannot be used, on clients with SMB NTLM blocking configured.
- The recommended resolution is to connect by the server's Kerberos-capable name (FQDN) instead of IP, and ensure name resolution and SPNs are correct.
- If legacy targets must be accessed and NTLM blocking is in effect, configure an NTLM exception list for those required targets.
Also check whether the issue started after an upgrade to Windows 11 24H2 or Windows Server 2025. Those versions introduced stricter SMB defaults, including:
- SMB signing required by default in some cases
- SMB client NTLM blocking available
- SMB encryption required by default for outbound SMB client connections
If the target is a third-party NAS or older SMB server, compare whether the failure is only with IP-based access or with all access methods. If only IP fails, focus first on Kerberos vs. NTLM behavior. If both fail, also investigate signing or encryption compatibility.
A concise interpretation guide:
- Hostname works, IP fails: investigate Kerberos vs. NTLM fallback first.
- Event logs mention unauthenticated guest access or Event ID 31017: the target is relying on guest access, which modern Windows blocks by default.
- Failure began after OS upgrade: review SMB hardening defaults first.
- Third-party NAS or workgroup target: NTLM restrictions are especially relevant.
References: