How to Completely Remove Proxy Settings in Windows 10
As a senior proxy expert, I often see users struggle with residual proxy configurations that persist long after they have stopped using a VPN or scraping tool. In 2025, with the rise of automated configuration scripts and "persistent" malware, simply toggling a switch isn't always enough. This guide provides a comprehensive breakdown of how to scrub proxy settings from Windows 10 using native tools, registry edits, and command-line interfaces.
Understanding Windows Proxy Architecture
Before removing settings, it is vital to understand where they live. Windows 10 handles proxies in two distinct layers:
1. Web Proxy (WinHTTP): Used by system services and modern Windows apps. 2. IE/legacy Proxy: Used by legacy applications and often controlled via the Internet Options control panel.
When you remove a proxy, you must address both layers to ensure a clean connection. If you are a web scraper or developer using tools like Python Requests or Selenium, you must also ensure your code isn't injecting these settings locally, overriding the OS configuration.
---
Method 1: The Standard GUI Removal
This is the first line of defense for 80% of cases. It clears the user-profile specific proxy settings.
1. Press Windows Key + I to open Settings. 2. Go to Network & Internet. 3. Select Proxy from the left sidebar. 4. Locate Manual proxy setup. 5. Toggle Use a proxy server to Off. 6. *Crucial Step:* Scroll down to Automatic proxy setup and ensure Automatically detect settings is On (to revert to DHCP) and Use setup script is Off.
Why this matters: If the "Setup Script" is left on, your computer might be re-downloading a Proxy Auto-Config (PAC) file every time you connect, forcing the proxy back on.
---
Method 2: Using Command Prompt (Netsh)
For power users and administrators, the netsh command is the most efficient way to reset the WinHTTP proxy. This is particularly useful if your browser (like Chrome) works, but other apps (like Discord or Python scripts) cannot connect.
Steps: 1. Type cmd in your Start menu. 2. Right-click "Command Prompt" and select Run as administrator. 3. Execute the following command:
netsh winhttp reset proxy
4. To verify the proxy is gone, type:
netsh winhttp show proxy
*Expected Output:* Direct access (no proxy server).
---
Method 3: Removing Proxy via Registry (Advanced)
If the GUI settings are greyed out or revert after a restart, a persistent Registry entry or Group Policy is likely the culprit. This is common in corporate environments or after a malware infection.
Warning: Editing the Registry can cause system instability. Backup first.
1. Press Win + R, type regedit, and hit Enter. 2. Navigate to this key path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings 3. Look for a value named ProxyServer. Right-click and Delete it. 4. Look for a DWORD value named ProxyEnable. * Change its value data to 0 to disable it. * Or, simply Delete the value. 5. Navigate to the System root (Machine-wide settings): HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings 6. If you see a key named ProxySettingsPerUser, verify it is set to 1 (allows per-user settings). If it is 0, a machine-wide policy is enforced.
Python Automation for Registry Cleaning
If you are a developer managing multiple machines, you can script this removal using Python's _winreg module (or winreg in Python 3).
import winreg
def remove_proxy_registry(): # Path to the Internet Settings key key_path = r"Software\Microsoft\Windows\CurrentVersion\Internet Settings"
try: # Open the key with write access key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, key_path, 0, winreg.KEY_SET_VALUE)
# Disable the proxy (Value 0) winreg.SetValueEx(key, "ProxyEnable", 0, winreg.REG_DWORD, 0)
# Remove the specific proxy server address try: winreg.DeleteValue(key, "ProxyServer") except FileNotFoundError: pass # ProxyServer was not set
winreg.CloseKey(key) print("[SUCCESS] Registry proxy settings cleared.")
except Exception as e: print(f"[ERROR] {e}")
if __name__ == "__main__": remove_proxy_registry()
---
Method 4: Fixing "Grayed Out" or Malware Proxies
A common issue in 2025 is malware changing the proxy settings to 127.0.0.1 (localhost) on a random port to filter your traffic. If you cannot turn off the proxy in Settings:
1. Check for Browser Extensions: Malicious Chrome extensions can force proxy settings. Go to chrome://extensions and remove anything suspicious. 2. Check Windows Defender Firewall: Malware often creates a rule to loop traffic through a local executable. 3. Safe Mode: Restart Windows in Safe Mode. In Safe Mode, third-party apps (including malware) usually do not run. You can then go to Settings > Proxy and disable it. When you reboot into normal mode, the changes will stick because the malware failed to start.
---
Comparison: Removal Methods
| Method | Difficulty | Effectiveness | Best Use Case | | :--- | :--- | :--- | :--- | | GUI Settings | Easy | Medium | Average user; simple proxy removal. | | Netsh Command | Medium | High | Developers/IT; clearing system/service proxies. | | Registry Edit | High | Very High | Removing persistent/malicious policies. | | Safe Mode + GUI| Medium | Very High | Removing settings enforced by malware. |
Common Removal Errors & Troubleshooting
Error: "The proxy server isn't responding" This simply means you have a proxy configured (e.g., 192.168.1.50:8080), but that server is offline. You must follow Method 1 to disable the configuration.
Error: Settings revert after restart This implies a "Startup Task" is re-enabling the proxy. Open Task Manager > Startup tab. Look for unknown applications with "Enabled" status and disable them.
Conclusion
Removing a proxy in Windows 10 is usually straightforward, but persistent configurations require deeper intervention via netsh or the Registry. Always verify your connection using netsh winhttp show proxy after removal to ensure a clean slate.