# Flush all routing tables sudo ip route flush cache sudo systemctl restart networking Or more forcefully, clear conntrack (if installed) sudo conntrack -F For macOS macOS is BSD-based. To reset the stack without rebooting:
Often, the culprit behind this silent assassination of your connection is a , technically known as an RST packet (Reset packet).
If you see these packets coming from the , the problem is likely on their end. If they come from your own router (gateway IP) or your local machine , the problem is on your network or computer. The Ultimate Fix: Performing a TCP/IP Stack Reset If you have determined that your local Windows or Linux machine is the source of spurious resets—or if you simply have a "broken internet" where some sites work and others don't—the most effective cure is to reset the TCP/IP stack to its factory state. For Windows 10/11 (The Official Method) Open Command Prompt as Administrator (right-click Start button > Terminal (Admin) or Command Prompt (Admin)).
This article demystifies the TCP reset: what it is, why it happens (from malicious attacks to harmless glitches), and how to diagnose and repair a corrupted local TCP/IP stack. TCP (Transmission Control Protocol) is the backbone of reliable internet communication. Unlike UDP (which is "fire and forget"), TCP is a polite, rule-bound conversation. It establishes a connection via a "three-way handshake" (SYN, SYN-ACK, ACK), sends data in numbered packets, and ends with a graceful "four-way handshake" (FIN, ACK, FIN, ACK).