windows 10 network cable unplugged event removes TCP connection

Peng 0 Reputation points
2026-10-14T07:04:54.84+00:00

kind people.

‌I'm encountering the exact same issue.

My computer has multiple network interfaces and runs Windows 10. I use TCPView to monitor the TCP connections established between client and Linux during the cable unplugging phase.

When I enable only one of the network interface and keep the other interfaces disabled, each time I unplug the cable all ESTABLISHED tcp connection won't be affected. If I replug the network cable some seconds later, all TCP connection are well kept. But when I enable two or more network interface(all cables connected), ESTABLISHED tcp connections disappear very soon after I unplug the network cable.

I also did the same test under windows 7 and Linux. No matter how many interfaces are being used, Unplugging the network cable won't affect ESTABLISHED connections.

TCP connection removed or not when unplugging cable depends upon how many network interfaces are in use. This behavior on Windows 10 is strange and I want to know whether this behavior is configurable or it is designed by purpose.

Windows for business | Windows Client for IT Pros | Networking | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Chen Tran 13,435 Reputation points Independent Advisor
    2026-10-14T08:03:52.73+00:00

    Hello YS P,

    Thank you for posting question on Microsoft Windows Forum!

    Based on the described behavioral difference between Windows 10 and its predecessors (or Linux) when multiple network interfaces are active. The difference you are seeing is by design in Windows 10's multi-homed network stack, driven by Media Sensing.

    In a single-NIC scenario, this invalidation has no alternative path. The TCP stack simply waits, assuming connectivity will return (which is why your connections survive a brief unplug). On the other hand, in a multi-NIC scenario, however, the presence of other active interfaces changes the calculus. When one link goes down, Windows' Media Sensing triggers the removal of that adapter's IP address and routes. The TCP/IP driver may then attempt to reroute traffic intended for the failed interface to another one, or it may simply remove the connection state because the local endpoint's address is no longer valid in the routing table.

    The suggested workaround here is to disable Media Sensing via the DisableDHCPMediaSense registry value, which should restore the connection-persistence behavior you observed with a single NIC. You can navigate to this path HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters .Create a new DWORD (32-bit) Value named DisableDHCPMediaSense and set its value to 1. Then restart the computer for the change to take effect.

    Please note: Making sure to back up your registry before making any change to it by following the instruction of this article. In case, something go wrong. You can swiftly reverse it.

    I hope you have found something useful here. If it helps you get more insight into the issue, it is appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.