How to Fix Unable to Connect to Proxy Server on Windows and Mac

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

  1. Press Win + I to open Settings
  2. Navigate to Network & Internet > Proxy
  3. Under “Manual proxy setup,” toggle “Use a proxy server” to Off
  4. Under “Automatic proxy setup,” toggle “Automatically detect settings” to On
  5. 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 /f

If 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:

  1. Press Win + R, type inetcpl.cpl, press Enter
  2. Go to the Connections tab
  3. Click “LAN settings”
  4. Uncheck “Use a proxy server for your LAN”
  5. Check “Automatically detect settings”
  6. 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 /flushdns

Restart 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 FullScan

Also 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:

  1. Press Win + R, type gpedit.msc, press Enter
  2. Navigate to User Configuration > Administrative Templates > Windows Components > Internet Explorer
  3. Check for proxy-related policies

If policies are enforced, contact your IT department to modify them.

Fix 6: Reset Browser Settings

Chrome:

  1. Navigate to chrome://settings/reset
  2. Click “Restore settings to their original defaults”

Edge:

  1. Navigate to edge://settings/reset
  2. Click “Restore settings to their default values”

Firefox:

  1. Navigate to about:support
  2. 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 /f

macOS Fixes

Fix 1: Disable Proxy in System Settings

  1. Open System Settings > Network
  2. Select your active connection (Wi-Fi or Ethernet)
  3. Click Details
  4. Navigate to Proxies
  5. Uncheck all proxy protocols (Web Proxy, Secure Web Proxy, SOCKS Proxy, etc.)
  6. Delete any Automatic Proxy Configuration URL
  7. 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 off

Fix 2: Remove Configuration Profiles

VPN or MDM profiles may enforce proxy settings:

  1. Open System Settings > General > Profiles
  2. Review any installed profiles
  3. Remove profiles that may be configuring proxy settings (if they are not required by your organization)

Fix 3: Reset Network Configuration

  1. Open System Settings > Network
  2. Select your active connection
  3. Click the minus button to remove it
  4. Click the plus button to re-add the same interface
  5. Reconnect to your network

Fix 4: Flush DNS and Reset Network

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

Fix 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:

  1. Navigate to Settings > General > Network Settings > Settings
  2. Select “No proxy” or “Use system proxy settings”
  3. If using a manual proxy, verify the host and port
  4. 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-server

This 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:

  1. Check the proxy is online: Log in to your provider dashboard and confirm the endpoint status
  2. Verify credentials: Ensure the username, password, host, and port are correct
  3. Test connectivity:
nc -zv proxy.example.com 8080
  1. Check your subscription: Expired plans or bandwidth overages can deactivate your proxy
  2. 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.


Related Reading

Scroll to Top