Skip to main content
Proxy Basics

How to Disconnect from Proxies: A Complete Guide for 2026

7 min read

How to Disconnect from Proxies: A Complete Guide

Disconnecting from a proxy server is not always as simple as closing a window. Proxies operate at different levels of your network stack—system-wide, browser-specific, or application-level (via code)—and require specific steps to fully disengage. Whether you are troubleshooting connection issues or simply need to revert to your local IP address, understanding how to properly sever these connections is critical for network hygiene and accurate testing. This guide covers how to disconnect from proxies across all major operating systems, browsers, and development environments in 2025.

Understanding Proxy Connection Levels

Before disconnecting, you must identify where the proxy is active. There are three primary tiers of proxy connectivity:

1. System-Level Proxies: These settings affect all traffic on the device. Configured usually in OS network settings, they route HTTP/HTTPS and sometimes SOCKS traffic for every application that respects the OS proxy configuration. 2. Browser/Extension-Level Proxies: These are set within Chrome, Firefox, or Edge, or via a browser extension. They only affect traffic within that specific browser, leaving other applications (like Discord or Spotify) untouched. 3. Application/Code-Level Proxies: Used by developers (e.g., in Python scripts or automation tools like Selenium), these proxies are defined within the code or the configuration files of the software itself.

Identifying which tier is active is the first step. If you turn off your system proxy but Chrome is still routing through a server, you likely have a browser extension active.

---

Disconnecting Proxies on Windows 10 and 11

Windows separates proxy configuration into two main categories: Automatic Setup and Manual Setup.

Method 1: Using the Settings App (Standard GUI)

The modern way to manage connections in Windows 11/10 is through the Settings app.

1. Open Settings (Win + I). 2. Navigate to Network & internet. 3. Select Proxy from the sidebar. 4. Automatic Setup: If "Use setup script" is on, toggle it Off. 5. Manual Setup: If "Use a proxy server" is on, toggle it Off.

*Note: Once disabled, your computer will contact websites directly using your local ISP connection. Windows may cache these settings; if sites still refuse to load, a simple terminal command (flushdns) can help, which we will cover in the troubleshooting section.*

Method 2: Using Command Prompt or PowerShell (Advanced)

For system administrators or users dealing with malware that forces proxies, the Registry or netsh is often required.

To disable via Netsh: Open Command Prompt as Administrator and run:

netsh winhttp reset proxy

This resets the WinHTTP proxy settings, which is often what command-line tools and background services use.

To check current settings:

netsh winhttp show proxy

---

Disconnecting Proxies on macOS

macOS handles proxies on a per-network basis (e.g., Wi-Fi vs. Ethernet). If you disconnect from a Wi-Fi network and reconnect to another, macOS remembers the specific proxy settings for that network.

Steps to Disable:

1. Click the Apple Icon > System Settings (or System Preferences on older versions). 2. Select Network in the sidebar. 3. Select the active network service (e.g., Wi-Fi or Ethernet) from the list on the right. 4. Click Details (or "Advanced" in older macOS versions). 5. Click the Proxies tab. 6. You will see a list of protocols (HTTP, HTTPS, FTP, SOCKS). 7. Uncheck every box that is currently checked. 8. Click OK.

Beware of .pac Files

Sometimes, instead of an IP address, the "Automatic Proxy Configuration" box is checked with a URL ending in .pac (Proxy Auto-Config). Uncheck this box to stop your Mac from fetching proxy rules from a remote server.

---

Browser-Level Disconnection (Chrome, Edge, Firefox)

If your system is clean but your browser is still showing a different IP address, the proxy is configured in the application layer.

1. Chrome and Edge (Chromium-based)

Chrome usually mirrors the system proxy. However, extensions often override this.

1. Open Settings > System (or search "proxy" in the settings bar). 2. Ensure "Open your computer's proxy settings" opens the OS menu. If the OS settings are off, Chrome should be off. 3. Check Extensions: Click the Puzzle Piece icon > Manage Extensions. Look for any VPN or Proxy extension (like "Hola," "ZenMate," or specific scraping extensions) and disable/remove them.

2. Firefox

Firefox is unique because it has its own internal network settings that do not always obey the OS.

1. Click the Menu (three lines) > Settings. 2. Go to Network Settings > Settings. 3. Select No proxy. 4. Uncheck "Use system proxy settings" if it is checked.

---

Disconnecting Proxies in Code (Python)

For web scraping experts, disconnecting is often about switching a session back to a direct connection.

Python Requests Example

When scraping, you might pass a proxies dictionary. To stop using the proxy for a specific request, simply omit the argument or pass it to a new session.

import requests

Define a proxy

proxy_dict = { "http": "http://10.10.1.10:3128", "https": "http://10.10.1.10:1080", }

Request WITH proxy

r_proxy = requests.get('http://httpbin.org/ip', proxies=proxy_dict) print("Proxy IP:", r_proxy.json())

Request WITHOUT Proxy (Direct Connection)

Simply do not pass the 'proxies' parameter

r_direct = requests.get('http://httpbin.org/ip') print("Direct IP:", r_direct.json())

Environment Variables

If you are using a library that defaults to system environment variables (like HTTP_PROXY), you must delete these variables to disconnect.

import os

Disconnect by clearing environment variables

os.environ.pop('http_proxy', None) os.environ.pop('https_proxy', None)

Now requests will not use the proxy

r = requests.get('http://httpbin.org/ip')

---

Troubleshooting: "I Can't Disconnect!"

Sometimes, even after following these steps, you might still be routed through a proxy. Here is the technical checklist for 2025:

1. Check for Malware/Adware: Some adware injects a proxy into the Windows Registry (specifically HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings) to force ads through a server. Use msconfig to look for suspicious startup items or clean the registry.

2. PAC File Persistence: If a network administrator (or a virus) configured a .pac file URL, your computer constantly downloads new proxy rules. Ensure "Automatic Proxy Configuration" is disabled in both OS and browser settings.

3. WebRTC Leaks: Even if you disconnect from the HTTP proxy, WebRTC in your browser might leak traffic through a different route. Ensure your WebRTC is disabled (via chrome://flags or a privacy extension) if anonymity is the concern.

4. DNS Cache: Your computer might be remembering where "google.com" used to be (via the proxy) and failing to load it now. Open terminal and flush the DNS: * Windows: ipconfig /flushdns * macOS: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Summary Checklist

| Device/Software | Action Item | | :--- | :--- | | Windows 10/11 | Settings > Network > Proxy > Toggle "Use a proxy server" to Off | | macOS | System Settings > Network > Details > Proxies > Uncheck all active boxes | | Chrome/Edge | Check extensions and disable VPN/Proxy plugins | | Firefox | Settings > Network Settings > Select "No proxy" | | Python Scripts | Remove proxies={...} from requests.get() or session object |

Share: