This article describes how to troubleshoot Transmission Control Protocol (TCP) three-way handshake failure during SMB connection.
When you analyze a network trace, you notice that there's a TCP three-way handshake failure that causes the SMB issue to occur.
Generally, the cause is a local or infrastructure firewall that blocks the traffic. This issue can occur in either of the following scenarios.
The TCP SYN packet arrives on the SMB server, but the SMB server doesn't return a TCP SYN-ACK packet
To troubleshoot this scenario, follow these steps:
-
Run
netstatorGet-NetTcpConnectionto make sure that there's a listener on TCP port 445 that should be owned by the SYSTEM process.netstat -ano | findstr :445Get-NetTcpConnection -LocalPort 445 -
Make sure that the Server service is started and running.
-
Take a Windows Filtering Platform (WFP) capture to determine which rule or program is dropping the traffic. To do this, run the following command in a Command Prompt window:
netsh wfp capture startReproduce the issue, and then, run the following command:
netsh wfp capture stopRun a scenario trace, and look for WFP drops in SMB traffic (on TCP port 445).
Optionally, you could remove the anti-virus programs because they aren't always WFP-based.
-
If Windows Firewall is enabled, enable firewall logging to determine whether it records a drop in traffic.
Make sure that the appropriate "File and Printer Sharing (SMB-In)" rules are enabled in Windows Firewall with Advanced Security > Inbound Rules.
[!NOTE] Depending on how your computer is set up, "Windows Firewall" might be called "Windows Defender Firewall."
The TCP SYN packet never arrives at the SMB server
In this scenario, you have to investigate the devices along the network path. You may analyze network traces that are captured on each device to determine which device is blocking the traffic.
Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
