How to Fix Unable to Connect to Proxy Server on Windows and Mac
The “Unable to connect to the proxy server” error is one of the most common network issues encountered on Windows and macOS. This error blocks all internet access through the affected browser or application, and it can appear whether you intentionally configured a proxy or not.
In many cases, this error results from incorrect proxy settings, malware that modified your network configuration, or leftover proxy entries from a VPN or corporate network that is no longer active. This guide covers every scenario and provides platform-specific solutions.
Understanding the Error
When your operating system or browser is configured to route traffic through a proxy server and that proxy is unreachable, you see this error. The key distinction is between two scenarios:
Intentional proxy use: You configured a proxy, and it stopped working. The proxy server may be down, your credentials may have changed, or your network may be blocking the proxy port.
Unintentional proxy setting: A proxy was configured without your knowledge, often by malware, a VPN client that did not clean up after itself, or a browser extension. Your device is trying to reach a proxy that does not exist.
The fix differs significantly between these two scenarios. Start by determining which applies to you.
Windows Fixes
Fix 1: Disable Proxy in Windows Settings
- Press Win + I to open Settings
- Navigate to Network & Internet > Proxy
- Under “Manual proxy setup,” toggle “Use a proxy server” to Off
- Under “Automatic proxy setup,” toggle “Automatically detect settings” to On
- Clear any URL in the “Use setup script” field if present
# Alternatively, disable via command line
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /fIf you intend to use a proxy but it is misconfigured, verify the address and port before re-enabling.
Fix 2: Check Internet Options
The legacy Internet Options panel sometimes holds different settings than the modern Settings app:
- Press Win + R, type
inetcpl.cpl, press Enter - Go to the Connections tab
- Click “LAN settings”
- Uncheck “Use a proxy server for your LAN”
- Check “Automatically detect settings”
- Click OK
Fix 3: Reset Network Stack
If the proxy setting was corrupted, resetting the network stack can resolve it:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdnsRestart your computer after running these commands.
Fix 4: Check for Malware
Malware frequently modifies proxy settings to intercept traffic. Run a full scan with Windows Defender or your preferred antivirus:
# Start Windows Defender full scan
Start-MpScan -ScanType FullScanAlso check for suspicious browser extensions and recently installed programs that may have changed your proxy settings.
Fix 5: Check Group Policy
Enterprise-managed machines may have proxy settings enforced by Group Policy:
- Press Win + R, type
gpedit.msc, press Enter - Navigate to User Configuration > Administrative Templates > Windows Components > Internet Explorer
- Check for proxy-related policies
If policies are enforced, contact your IT department to modify them.
Fix 6: Reset Browser Settings
Chrome:
- Navigate to
chrome://settings/reset - Click “Restore settings to their original defaults”
Edge:
- Navigate to
edge://settings/reset - Click “Restore settings to their default values”
Firefox:
- Navigate to
about:support - Click “Refresh Firefox”
Note that resetting Chrome and Edge also resets their proxy settings to use the system default.
Fix 7: Check Registry for Proxy Entries
Malware sometimes writes proxy settings directly to the Windows registry:
# View current proxy settings
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL
# Remove proxy server entry
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /fmacOS Fixes
Fix 1: Disable Proxy in System Settings
- Open System Settings > Network
- Select your active connection (Wi-Fi or Ethernet)
- Click Details
- Navigate to Proxies
- Uncheck all proxy protocols (Web Proxy, Secure Web Proxy, SOCKS Proxy, etc.)
- Delete any Automatic Proxy Configuration URL
- Click OK
# Alternatively, disable via command line
networksetup -setwebproxystate Wi-Fi off
networksetup -setsecurewebproxystate Wi-Fi off
networksetup -setsocksfirewallproxystate Wi-Fi off
networksetup -setautoproxystate Wi-Fi offFix 2: Remove Configuration Profiles
VPN or MDM profiles may enforce proxy settings:
- Open System Settings > General > Profiles
- Review any installed profiles
- Remove profiles that may be configuring proxy settings (if they are not required by your organization)
Fix 3: Reset Network Configuration
- Open System Settings > Network
- Select your active connection
- Click the minus button to remove it
- Click the plus button to re-add the same interface
- Reconnect to your network
Fix 4: Flush DNS and Reset Network
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponderFix 5: Check for macOS Malware
Run a malware scan using Malwarebytes or your preferred security tool. Check for:
- Suspicious Login Items in System Settings > General > Login Items
- Unknown LaunchAgents in
~/Library/LaunchAgents/ - Unknown LaunchDaemons in
/Library/LaunchDaemons/
Browser-Specific Fixes
Firefox (All Platforms)
Firefox uses its own proxy settings independent of the OS:
- Navigate to Settings > General > Network Settings > Settings
- Select “No proxy” or “Use system proxy settings”
- If using a manual proxy, verify the host and port
- Click OK
Chrome (All Platforms)
Chrome defers to the operating system for proxy settings. If Chrome shows the proxy error, fix the OS-level settings as described above.
To launch Chrome temporarily without a proxy:
# Windows
chrome.exe --no-proxy-server
# macOS
open -a "Google Chrome" --args --no-proxy-server
# Linux
google-chrome --no-proxy-serverThis flag bypasses all proxy settings for that session, useful for confirming the proxy is the cause.
When You Intentionally Use a Proxy
If you configured a proxy on purpose and see the “unable to connect” error, the proxy server itself may be the issue. Verify with your mobile proxy or other proxy provider:
- Check the proxy is online: Log in to your provider dashboard and confirm the endpoint status
- Verify credentials: Ensure the username, password, host, and port are correct
- Test connectivity:
nc -zv proxy.example.com 8080- Check your subscription: Expired plans or bandwidth overages can deactivate your proxy
- Update proxy details: Providers sometimes change gateway addresses or ports
For a structured approach to validating your proxy setup, use the proxy testing checklist.
Preventing Recurrence
After resolving the error, take these preventive steps:
- Install reputable antivirus software that monitors for proxy setting changes
- Be cautious with free VPN and proxy extensions that may inject unwanted proxy configurations
- Document your proxy settings so you can quickly restore them if they are changed
- Regularly check proxy settings in your OS and browsers, especially after installing new software
- Use browser profiles to isolate proxy configurations from your default browsing session
For understanding the technical terms behind proxy configurations, the proxy glossary provides clear definitions.
Conclusion
The “Unable to connect to the proxy server” error is almost always caused by either an incorrect proxy configuration or a proxy setting that was injected without your knowledge. On Windows, check both the modern Settings app and the legacy Internet Options panel. On macOS, check System Settings and any installed configuration profiles. If you did not configure a proxy, disable all proxy settings and scan for malware. If you did configure one, verify the proxy server is online and your credentials are current. The error is straightforward to resolve once you identify which scenario applies to your situation.
- Common cURL and Python Requests Proxy Errors (With Code Fixes)
- How to Debug Proxy Issues Using Charles, Fiddler, and mitmproxy
- Backconnect Proxies Deep Dive: Architecture and Real-World Performance
- Best Proxies in Southeast Asia: Singapore, Thailand, Indonesia, Philippines
- How to Build a 4G/5G Mobile Proxy Farm with Raspberry Pi
- How to Configure a Proxy in FoxyProxy for Firefox
- Common cURL and Python Requests Proxy Errors (With Code Fixes)
- How to Debug Proxy Issues Using Charles, Fiddler, and mitmproxy
- Anti-Bot Detection Glossary: 50+ Terms Defined
- Anti-Bot Terminology Glossary: Complete A-Z Reference 2026
- Backconnect Proxies Deep Dive: Architecture and Real-World Performance
- Best Proxies in Southeast Asia: Singapore, Thailand, Indonesia, Philippines
- Common cURL and Python Requests Proxy Errors (With Code Fixes)
- How to Debug Proxy Issues Using Charles, Fiddler, and mitmproxy
- Anti-Bot Detection Glossary: 50+ Terms Defined
- Anti-Bot Terminology Glossary: Complete A-Z Reference 2026
- Backconnect Proxies Deep Dive: Architecture and Real-World Performance
- Best Proxies in Southeast Asia: Singapore, Thailand, Indonesia, Philippines
- Common cURL and Python Requests Proxy Errors (With Code Fixes)
- How to Debug Proxy Issues Using Charles, Fiddler, and mitmproxy
- 403 Forbidden Error: What It Means & How to Fix It
- 407 Proxy Authentication Required: Fix Guide
- Anti-Bot Detection Glossary: 50+ Terms Defined
- Anti-Bot Terminology Glossary: Complete A-Z Reference 2026
Related Reading
- Common cURL and Python Requests Proxy Errors (With Code Fixes)
- How to Debug Proxy Issues Using Charles, Fiddler, and mitmproxy
- 403 Forbidden Error: What It Means & How to Fix It
- 407 Proxy Authentication Required: Fix Guide
- Anti-Bot Detection Glossary: 50+ Terms Defined
- Anti-Bot Terminology Glossary: Complete A-Z Reference 2026