# Reset Winsock and TCP/IP on Windows

> Use Reset Network in S.A.K. Utility to reset Winsock, TCP/IP, the firewall, and adapters when a PC will not connect. Needs administrator rights and a restart.

Source: https://sakutility.com/wiki/reset-network
Applies to: S.A.K. Utility (SAK), a free portable Windows toolkit
Updated: 2026-11-11

To reset Winsock and TCP/IP on Windows, use S.A.K. Utility: go to the **Network Management** tab, open **Network Adapters**, press **Reset Network**, and answer **Yes**. It resets the PC's network software, Windows Firewall, and running adapters in one go. Then restart the PC.

## When to use this

Use this as a last resort, when a PC will not connect and simpler fixes have failed, for example after removing malware or a broken VPN. Before you do, try restarting the PC and the router, and check the adapter settings.

Winsock is the part of Windows that programs use to reach the network. TCP/IP is the set of rules the network runs on.

## What you need

- **Administrator rights.** If S.A.K. Utility is not running as administrator, Windows asks for approval when the reset starts.
- If an adapter is turned off and has a hand-set IP address, a note of it. S.A.K. Utility saves and puts back the settings of every adapter that is turned on, but Windows does not show a turned-off adapter's settings.
- A moment when you can lose the connection and restart the PC.

## Steps

> This cannot be undone with a button. It removes custom firewall rules. VPN or security software may need reinstalling afterward. Save your work first.

1. Go to the **Network Management** tab and open **Network Adapters**.
2. Press **Reset Network**. The button reads **Checking adapters...** while S.A.K. Utility reads every adapter's settings.
3. Read the message, and press **Yes**. **No** is the safe choice and changes nothing. The message lists each adapter with settings typed in by hand, such as a fixed IP address, gateway or DNS server, and says they are saved and put back. On a PC whose adapters get their addresses automatically, it says **Adapters that get their address automatically (DHCP) keep doing so.** instead. It also names any adapter that is turned off, whose settings Windows does not show: note those by hand first. If S.A.K. Utility cannot read the adapters' settings, it says so and does not reset anything.

   ![Reset Network message saying it resets Winsock, TCP/IP, the Windows Firewall, and network adapters, then listing an Ethernet adapter's hand-set address, gateway and DNS server that it saves and puts back, with Yes and No buttons](https://sakutility.com/screenshots/wiki/net_reset_confirm.webp?v=ad0c596c11)

*Reset Network asks before it starts, and names what it will put back*

4. Approve the Windows administrator prompt if it appears. The button changes to **Resetting...**.
5. Wait for the status bar to show the result. It can take a minute or two while the adapters restart. A reset that worked reads **Network settings reset successfully**, adds **settings typed in by hand were put back** when there were any, says **REBOOT REQUIRED** once the Winsock or TCP/IP settings have been reset, and ends with **settings from before the reset saved to** and the file's path.

   ![Network Adapters tab after a reset, with the Ethernet adapter connected at its hand-set address and the status bar reading Network settings reset successfully, settings typed in by hand were put back, REBOOT REQUIRED, with the rest of the line, where the settings were saved, cut off at the edge of the window](https://sakutility.com/screenshots/wiki/net_reset_result.webp?v=0d68555f2b)

*A reset that worked, with the hand-set address back*

6. Restart the PC. The Winsock and TCP/IP changes need a restart to take effect.

## How it works

S.A.K. Utility runs these steps in order:

1. Reads every adapter's settings, for IPv4 and IPv6, and saves them to a file. If it cannot, the reset stops before anything changes.
2. Saves a copy of the current Winsock list. If it cannot, the reset stops before anything changes.
3. Clears the DNS cache.
4. Resets Winsock.
5. Resets the TCP/IP settings for IPv4 and IPv6. On Windows 11, Windows refuses one protected setting and asks for a restart. That is normal, and the reset still counts as done. On a Windows in a language other than English, S.A.K. Utility cannot read Windows' answer, so the same thing counts as a failed step.
6. Releases and renews IP addresses.
7. Saves a copy of the firewall rules, then resets Windows Firewall. If the copy fails, the firewall is left alone.
8. Restarts each adapter that is running.
9. Clears and refreshes the NetBIOS name cache.
10. Puts back the settings typed in by hand: addresses, gateways with the priority (metric) each had, where a priority Windows chose stays Windows' choice, and DNS servers. An adapter that got its address automatically (DHCP) is set to do so again if the reset changed that.
11. Checks that every adapter that was connected has DHCP turned on or an address that is not self-assigned (169.254.x.x). It waits up to about a minute and a half for the adapters to come back. If they are still restarting by then, the result says so and asks you to check the connection after the restart.

If a step fails, or an adapter is left without a usable address, the status bar says **Reset failed:** with the number of issues, and the steps after it still run where they can. Turn on the **Log** switch to see what was put back, how each adapter checked out, each failed step, and where the saved copies went. The same lines are in `data\logs\quick_actions.log`.

## Good to know

- The saved copies are a text file named `sak_winsock_...txt` and a folder named `sak_fw_...` holding `firewall_rules.wfw`. If the app was showing **Standard** when you started the reset, look in `data\temp` beside the program. If it was already running as administrator, look in the Windows temp folder. To bring old firewall rules back, import that file in Windows Defender Firewall with Advanced Security. Temp folders can get cleaned, so move it somewhere safe if you need it.
- The Winsock copy is a reference list. There is no button that restores it.
- The adapters' settings are saved in `data\network-backups` beside the program, in a file named `network-settings-before-reset-` followed by the date and time. If an adapter could not be put back, the result names this file, and the settings in it can be typed in again by hand.
- The button is on the **Network Adapters** tab, not **Network Diagnostics**.

## Related guides

- [Back up and restore static IP and DNS settings](https://sakutility.com/wiki/back-up-network-settings)
- [Set a static IP, DNS, or DHCP on a network adapter](https://sakutility.com/wiki/manage-network-adapters)
- [Run ping, traceroute, and MTR on Windows](https://sakutility.com/wiki/ping-traceroute-mtr)
- [When S.A.K. Utility needs administrator rights](https://sakutility.com/wiki/administrator-rights)
