Skip to main content
Troubleshooting

How to Disable Proxy in Windows 11: Complete Guide (2026)

7 min read

Introduction

As we move deeper into the decade, Windows 11 has matured, yet the fundamental architecture of network management remains consistent. Proxies serve as intermediaries for web traffic, essential for privacy, corporate management, and web scraping. However, a misconfigured or stale proxy setting is a common cause of "No Internet" connectivity errors.

This guide provides a technical deep dive into disabling proxy servers on Windows 11. We cover the standard GUI approach for casual users and advanced command-line interventions for developers and system administrators.

---

Method 1: Using the Windows Settings App (Standard GUI)

The Settings application is the primary user interface for network configuration in Windows 11 version 23H2 and newer.

Step-by-Step Instructions:

1. Launch Settings: Press Windows Key + I to open the Settings window. 2. Navigate to Network: Select Network & internet from the left sidebar. 3. Access Proxy Settings: Click on Proxy. This section handles both manual setups and automatic configuration scripts. 4. Disable Manual Setup: Under "Manual proxy setup", identify the Use a proxy server toggle. If it is "On", switch it to Off. Immediately, the fields for IP address and Port should grey out. 5. Disable Scripts: Under "Automatic proxy setup", look for Use setup script. If this is enabled, toggle it Off. This prevents Windows from using a .pac file (Proxy Auto-Config) which may override your manual settings. 6. Save: Windows 11 saves these changes automatically. You can close the window.

Why this matters: Many 3rd party VPNs or "Privacy Tools" toggle this setting automatically. When these programs crash or close improperly, they often fail to toggle the switch back to Off, leaving your internet connection dead because the non-existent proxy is intercepting traffic.

---

Method 2: Using Command Prompt (Registry Reset)

For advanced users and system administrators, the GUI is often too slow. Furthermore, malware or persistent adware sometimes disables the ability to toggle the proxy switch in the UI. In such cases, modifying the Windows Registry directly is the most effective solution.

The Technical Architecture

Windows stores proxy settings in the Registry hive: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

The critical values are:

  • ProxyEnable: A DWORD (32-bit) value. 1 = Enabled, 0 = Disabled.
  • ProxyServer: A String value containing the IP:Port (e.g., 127.0.0.1:8080).
  • Code Snippet: Batch Script to Disable Proxy

    You can copy the following code into a text file, save it as disable_proxy.bat, and run it as Administrator. This script forcefully resets the proxy registry keys.

    @echo off
    

    :: Check for Administrator privileges net session >nul 2>&1 if %errorLevel% neq 0 ( echo Requesting Administrative privileges... goto :UACPrompt ) else ( goto :Admin )

    :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "%~s0", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B

    :Admin :: Deleting the registry keys to disable proxy echo Disabling Proxy Server... reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f

    echo Refreshing Network Settings... :: A simple way to refresh network settings without a full reboot is often difficult in batch, :: but the registry change is instant for most new connections.

    echo Proxy Disabled Successfully. pause

    Python Implementation for Developers

    If you are managing multiple machines or developing a Windows utility, Python's _winreg (or winreg in Python 3) module offers a clean way to manipulate these settings programmatically.

    import winreg
    

    import ctypes import sys

    def disable_windows_proxy(): path = r"Software\Microsoft\Windows\CurrentVersion\Internet Settings" try: # Open the registry key key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0, winreg.KEY_SET_VALUE)

    # Disable Proxy (0 = Off, 1 = On) winreg.SetValueEx(key, "ProxyEnable", 0, winreg.REG_DWORD, 0)

    # Remove the ProxyServer address to ensure no residue remains try: winreg.DeleteValue(key, "ProxyServer") except FileNotFoundError: pass # Value already missing

    winreg.CloseKey(key)

    # Notify the system of the change (Internet Explorer/Windows API refresh) INTERNET_OPTION_SETTINGS_CHANGED = 39 INTERNET_OPTION_REFRESH = 37

    # This calls InternetSetOption in wininet.dll ctypes.windll.wininet.InternetSetOptionW(0, INTERNET_OPTION_SETTINGS_CHANGED, 0, 0) ctypes.windll.wininet.InternetSetOptionW(0, INTERNET_OPTION_REFRESH, 0, 0)

    print("[SUCCESS] Windows Proxy has been disabled and system settings refreshed.")

    except Exception as e: print(f"[ERROR] Failed to modify registry: {e}")

    if __name__ == "__main__": disable_windows_proxy()

    ---

    Method 3: Netsh Command Line

    The netsh (Network Shell) command is a legacy tool that remains powerful in Windows 11. While winhttp proxy settings are typically distinct from the browser (IE) settings, they often interfere with system updates and background services.

    To disable the WinHTTP proxy (Command Line):

    1. Open Command Prompt or PowerShell as Administrator. 2. Type the following command and press Enter: netsh winhttp reset proxy 3. You should see a message: "Direct access (no proxy server)."

    Note: This command resets the proxy for services that use the Windows HTTP (WinHTTP) API. It often solves issues where Windows Update fails even though the browser works fine.

    ---

    Troubleshooting: Why Won't the Proxy Turn Off?

    If you have followed Method 1 and the switch keeps turning itself back on, or if the Proxy Server field contains a greyed-out IP address you cannot remove, you are likely dealing with Policy Enforcement or Malware.

    1. Check for Group Policies (Corporate/Managed Devices)

    If this is a work laptop, your IT department may enforce a proxy via Group Policy. You cannot disable this permanently unless you are on the corporate network or have administrator privileges to remove the policy.

  • Check: Press Windows Key + R, type gpedit.msc.
  • Navigate: Computer Configuration > Administrative Templates > Windows Components > Internet Explorer.
  • Look for: "Disable changing proxy settings". If this is set to Enabled, you cannot change the setting in the UI.
  • 2. Browser-Level vs. System-Level Proxies

    It is crucial to understand the distinction.

  • System Proxy: Controlled via Windows Settings (Methods 1 & 2). affects almost all applications (Edge, Chrome, Spotify, Zoom).
  • Browser Extension Proxy: Controlled inside Chrome, Firefox, or Opera.

If you disabled the Windows proxy but your IP is still different (e.g., showing as a server in Brazil or Russia): 1. Open your Browser Extensions. 2. Look for "VPN" or "Proxy" extensions. 3. Disable or remove them.

3. Malware and "Rootkit" Proxies

Certain types of malware (such as DNS Unlocker or generic Browser Redirect Trojans) modify the ProxyServer registry value to point to a local loopback address (e.g., 127.0.0.1:8080) where a malicious listener runs.

The Fix: Running the Batch Script provided in Method 2 is usually the fastest way to kill this. Following the registry reset, scan your system with Malwarebytes or Windows Defender Offline.

---

Comparison Table: Methods to Disable Proxy

| Method | Difficulty | Scope | Best Used For | | :--- | :--- | :--- | :--- | | Settings App | Low | System (WinINET) | Everyday users, quick UI toggles. | | Registry/CMD | High | System (WinINET) | scripting, fixing "stuck" settings, removing malware configs. | | Netsh | Medium | System (WinHTTP) | Fixing Windows Update errors, server-level services. | | Browser Settings | Low | App Only | Removing extensions that bypass OS settings. |

---

Conclusion

Disabling a proxy in Windows 11 is generally straightforward via the Settings > Network & Internet menu. However, as a senior scraping expert, I frequently encounter scenarios where settings are hijacked by persistent software. By utilizing the Registry reset (Method 2) or the Netsh command (Method 3), you can ensure that your Windows 11 machine returns to a direct, clean connection state. Always verify that the change took effect by visiting an IP checking site immediately after making the change.

Share: