How to Turn Off Proxy Server: The Complete Technical Guide
As web scraping and proxy experts, we often configure elaborate proxy networks to route traffic. However, knowing how to disable a proxy server is just as critical as setting one up. Whether you are troubleshooting connection errors, switching from a development environment to a production one, or simply reverting to a direct connection for speed, this guide covers every method to turn off proxy settings in 2025.
---
Understanding Proxy States Before Disabling
Before you disable your proxy, it is vital to understand what might be active. Proxies generally operate in two modes:
1. System-Wide Proxies: These settings affect all applications (browsers, Discord, Python scripts, updater services). They are configured in the OS Network Settings. 2. Application-Specific Proxies: These are set within a specific browser (like Firefox) or a tool (like Postman or a scraping script).
If you disable the system proxy but your browser is still routing traffic through a gateway (e.g., acting slow or showing the wrong IP), you likely have a browser-specific configuration or a "Proxy Auto-Config" (PAC) file active.
---
Method 1: Disabling Proxy on Windows 10/11
Windows 11 and Windows 10 have unified their network settings. Disabling the proxy here stops system-wide redirection.
Step-by-Step Instructions:
1. Open the Start Menu and type "Proxy". Select Proxy settings from the results. 2. Automatic Setup: Look at the "Automatic proxy setup" section. If "Automatically detect settings" or "Use setup script" is on, toggle them Off. PAC files are common in corporate environments and can override manual settings. 3. Manual Setup: Look at "Manual proxy setup". If the Use a proxy server toggle is On, turn it Off. 4. Address/Port Clearing: Once toggled off, the "Address" and "Port" fields should grey out. It is good practice to delete the IP address listed to ensure no cached values persist.
Technical Note: The Registry
Sometimes, the Settings UI is greyed out due to malware or Group Policy. You can force-disable the proxy via the Windows Registry.
1. Open Run (Win+R), type regedit, and hit Enter. 2. Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings 3. Look for a key named ProxyEnable. 4. Modify the value data from 1 to 0. 5. Pro Tip: You can also do this via a simple Python script if you are managing remote machines:
import winreg
def disable_windows_proxy(): try: key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Internet Settings", 0, winreg.KEY_SET_VALUE) winreg.SetValueEx(key, "ProxyEnable", 0, winreg.REG_DWORD, 0) winreg.CloseKey(key) print("System Proxy Disabled via Registry.") except Exception as e: print(f"Error: {e}")
---
Method 2: Disabling Proxy on macOS (Sonoma & Sequoia)
macOS handles proxies per-network interface (Wi-Fi vs. Ethernet).
Step-by-Step Instructions:
1. Click the Apple Icon > System Settings (or System Preferences on older versions). 2. Go to Network. 3. Select your active connection on the left sidebar (usually Wi-Fi or Ethernet). 4. Click Details (or "Advanced..."). 5. Select the Proxies tab. 6. You will see a list of protocols (HTTP, HTTPS, FTP, SOCKS). Uncheck every single box. 7. Pay special attention to "Auto Proxy Discovery" and "Automatic Proxy Configuration" (PAC file). Uncheck these. 8. Click OK.
---
Method 3: Browser-Specific Configuration
Disabling the system proxy does not always stop your browser from using one. Browsers like Firefox maintain their own independent network stack, while Chrome/Edge often inherit from the system but can be overridden by extensions.
Google Chrome & Microsoft Edge
While Chrome uses system settings by default, extensions or policies can change this.
1. Open browser settings. 2. Search for "Proxy" in the search bar. 3. Select Open your computer's proxy settings. This will bounce you to the Windows/macOS menu described in Method 1 & 2. 4. Check Extensions: If traffic is still slow, go to chrome://extensions. Remove or disable any VPN extensions (e.g.,Hola, ZenMate) as these function as local proxies.
Mozilla Firefox (Independent Configuration)
Firefox is unique. It ignores system proxy settings if configured manually.
1. Go to Settings > General > scroll down to Network Settings. 2. Click Settings. 3. Ensure "Use system proxy settings" is selected if you have already disabled the OS proxy. 4. However, if it was set to "Manual proxy" or "Auto-detect", change it to "No proxy" to be 100% sure direct traffic is enforced.
---
Method 4: Disabling Proxies in Python & Code
If you are a developer or scraper, you might have set a proxy environment variable globally. Disabling the OS proxy won't stop requests or selenium from using these variables.
Disabling Environment Variables (Linux/Windows)
If you previously set up a proxy via the command line (e.g., export HTTP_PROXY=...), it persists in that terminal session.
Windows Command Prompt:
set HTTP_PROXY=
set HTTPS_PROXY=
Linux/macOS Terminal:
unset HTTP_PROXY
unset HTTPS_PROXY unset http_proxy unset https_proxy
Python Requests Example
When using the requests library, you can explicitly pass None or an empty dictionary to ensure no proxy is used for a specific request, even if system variables are set.
import requests
Example 1: Explicitly ignoring system environment variables for this session
session = requests.Session() session.trust_env = False # This ignores env vars (HTTP_PROXY) response = session.get('https://api.ipify.org?format=json') print(f"Direct IP: {response.json()['ip']}")
Example 2: Overriding proxies to None
response = requests.get('https://api.ipify.org?format=json', proxies={"http": None, "https": None})
---
Troubleshooting: Why Won't My Proxy Turn Off?
If you have followed these steps and your IP address still shows as a proxy (e.g., detected by ipinfo.io), consider these three advanced scenarios:
1. Malware and "Proxy Server" Viruses
A common tactic of malware is to set a proxy server to 127.0.0.1 on port 8080 to sniff your traffic or inject ads. You turn it off, but the malware process re-enables it immediately.
- Solution: Boot into Safe Mode and disable the proxy settings. Run a deep scan with Malwarebytes.
- Solution: You cannot turn this off permanently without admin privileges. Contact your IT department; changing these settings may flag your account for suspicious activity.
- Solution: In Windows Proxy Settings, turn Off "Automatically detect settings".
2. Group Policy Objects (GPO)
If you are using a work laptop, your IT department likely forces a proxy configuration via Windows Group Policy. The settings will be greyed out, or they will revert to "On" after a restart.
3. WPAD (Web Proxy Auto-Discovery Protocol)
If "Automatically detect settings" is checked, Windows attempts to find a configuration file on your local network. This can lead to "leaking" traffic through a local router proxy even if you think you are direct.
---
Comparison: Direct Connection vs. Proxy
Why turn it off? Generally, for speed and raw connectivity.
| Feature | Direct Connection (Proxy Off) | Proxy Connection (Proxy On) | | :--- | :--- | :--- | | Speed | Fastest. No intermediate hops. | Slower. Depends on proxy server latency. | Privacy | Your IP is visible to the target. | Your IP is hidden; target sees proxy IP. | Access | Blocked by geo-restrictions. | Can bypass geo-fences. | Auth | None required. | Often requires username/password or IP whitelist. | Stability | High. | Variable. Proxies can die or become blocked.
Conclusion
To summarize how to turn off your proxy server: always start with the OS Settings (Windows Settings or macOS Network). Verify that "Automatically detect settings" is disabled to prevent WPAD interference. If you are a developer, ensure your Environment Variables are unset and check that your code (Python, Node.js) isn't hardcoding a proxy value.
By reverting to a direct connection, you ensure the highest throughput for non-sensitive tasks and eliminate the Proxy Server as a single point of failure in your network chain.