Skip to main content
Troubleshooting

How to Remove Proxy Settings on Windows, macOS, and Browsers [2026]

7 min read

How to Remove Proxy Settings: The Ultimate Technical Guide

As a senior proxy specialist, I often see users struggle with connection issues caused by "ghost" proxy settings. Whether you are troubleshooting a malware infection, rotating your residential infrastructure, or simply returning to a direct connection after using a corporate VPN, knowing how to cleanly strip proxy configurations is a vital skill.

In 2025, proxy configurations can hide in three distinct layers: the Operating System (OS), the Application Level (Browsers or CLI tools), and Environment Variables. This guide covers all layers to ensure a total reset.

---

1. Removing Proxy Settings in Windows 10 and 11

Windows is the most common OS for proxy usage, particularly for automated scraping setups using tools like Proxy Switcher or Selenium.

The Standard Method (GUI)

1. Press Windows Key + I to open Settings. 2. Navigate to Network & Internet. 3. Select Proxy from the left sidebar. 4. Automatic Setup: Toggle "Automatically detect settings" to On if you want direct DHCP discovery, or Off if you have a static IP. 5. Manual Setup: Under "Manual proxy setup," toggle "Use a proxy server" to Off. 6. Script Setup: If "Use setup script" is On, toggle it Off and delete any URL in the "Script address" field.

The Registry Method (Advanced)

If malware or a aggressive bot has locked your settings via Group Policy or Registry, you may need to edit the registry directly. Warning: Backup your registry before proceeding.

1. Open regedit. 2. Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings 3. Look for the ProxyEnable DWORD. Change its value data to 0. 4. Look for ProxyServer. Delete the string value entirely.

Cleaning Windows Environment Variables

Developers often set proxies via environment variables which overrides the GUI settings.

1. Search for "Edit the system environment variables" in the Start menu. 2. Click the Environment Variables button. 3. Check both User variables and System variables. 4. Look for keys named HTTP_PROXY, HTTPS_PROXY, NO_PROXY, or ALL_PROXY. Select and Delete them.

---

2. Removing Proxy Settings in macOS

macOS stores proxy settings on a per-network basis (Wi-Fi vs. Ethernet), which often confuses users who switch connections.

Step-by-Step GUI Removal

1. Click the Apple Menu > System Settings (or System Preferences in older versions). 2. Go to Network. 3. Select your active network service (e.g., Wi-Fi) on the right. 4. Click Details (or Advanced). 5. Click the Proxies tab. 6. You will see a list of protocols (HTTP, HTTPS, SOCKS, FTP, etc.). Uncheck every single box. 7. Click OK, then click Apply.

Using the Terminal (macOS/Linux)

For power users and sysadmins, the networksetup command is the fastest way to wipe proxies.

To clear the Wi-Fi proxy (assuming Wi-Fi is your service name):

sudo networksetup -setwebproxystate Wi-Fi off

sudo networksetup -setsecurewebproxystate Wi-Fi off sudo networksetup -setsocksfirewallproxystate Wi-Fi off

To clear the HTTP/HTTPS proxy entirely:

sudo networksetup -setwebproxy Wi-Fi "" 0

sudo networksetup -setsecurewebproxy Wi-Fi "" 0

---

3. Removing Proxy Settings in Web Browsers

Most modern browsers (Chrome, Edge, Brave) do not have their own individual proxy settings. They simply call the OS API. However, if you are using Firefox, it has a distinct configuration engine.

Google Chrome, Edge, Brave

You cannot remove the proxy *inside* the browser settings menu effectively. You must revert the OS settings. 1. Go to browser Settings. 2. Search for "Proxy". 3. Click "Open your computer's proxy settings". 4. This redirects you to the Windows/macOS settings menu described in Section 1 and 2.

Mozilla Firefox (Independent Configuration)

Firefox is unique. 1. Go to Menu > Settings > General. 2. Scroll down to Network Settings. 3. Click Settings. 4. Select "No proxy". 5. Alternatively, check "Use system proxy settings" if you have already cleaned the OS proxy and want Firefox to match it.

---

4. Developer Tools: Git, NPM, and Python

This is the most overlooked category. Developers often set proxies to bypass corporate firewalls, then work from home and wonder why their git push or pip install times out.

Git Proxy Removal

Git often stores proxy configs in the global .gitconfig file.

Check current configuration:

git config --global --get http.proxy

git config --global --get https.proxy

Remove the configuration:

git config --global --unset http.proxy

git config --global --unset https.proxy

NPM (Node Package Manager)

NPM is notorious for caching proxy configurations.

Check current config:

npm config get proxy

npm config get https-proxy

Remove the configuration:

npm config delete proxy

npm config delete https-proxy

Note: Sometimes NPM reads from the system environment variable. Ensure you unset HTTP_PROXY in your shell (zsh/bash) as described in the Windows section.

APT (Linux/Ubuntu)

If you use a proxy for apt-get updates: 1. Check for a proxy file in /etc/apt/apt.conf.d/. 2. Common filename: proxy.conf. 3. Delete the file or comment out the Acquire::http::Proxy line.

---

Troubleshooting: Why is the Proxy Still Active?

If you have followed all steps above and your traffic is *still* routed through a proxy, check for the following advanced interference:

1. PAC (Proxy Auto-Config) Scripts

Malware or network admins often use .pac files. These are intelligent scripts that route traffic based on destination URLs.

  • Check: In your Windows/Network settings, look for the "Script address" field. If it points to a local file (e.g., C:/Users/.../proxy.pac) or a web URL, delete it.
  • 2. WPAD (Web Proxy Auto-Discovery Protocol)

    If "Automatically detect settings" is checked in Windows, your computer constantly looks for a WPAD server on the local network. If you are on a public WiFi, this might redirect you to a captive portal or an old proxy server.

  • Fix: Turn "Automatically detect settings" Off in Windows Internet Options.
  • 3. VPN Extensions

    Sometimes browser extensions labeled "Privacy VPN" or "Free Proxy" act as a Localhost Proxy (typically binding to 127.0.0.1:port).

  • Fix: Disable all extensions and check the connection.

Summary Table

| Platform | Method | Command / Path | | :--- | :--- | :--- | | Windows | GUI | Settings > Network & Internet > Proxy > Off | | Windows | Registry | HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings | | macOS | Terminal | sudo networksetup -setwebproxystate Wi-Fi off | | Git | CLI | git config --global --unset http.proxy | | NPM | CLI | npm config delete proxy | | Browsers | Settings | System > Proxy Settings (OS Level) |

Removing proxy settings is usually straightforward, but when dealing with layered configurations (OS + App + Environment), you must be systematic. Always restart your application or command-line interface after clearing settings to flush the DNS cache and configuration memory.

Share: