v1.10.90-0e025b8
Skip to main content
Back to Hex Proxies

Firefox Proxy Setup

Last updated: April 2026

By Hex Proxies Engineering Team

Firefox has built-in proxy settings independent of your OS. Learn how to configure HTTP, HTTPS, and SOCKS5 proxies with Hex Proxies credentials directly inside Firefox.

beginner10 minutesbrowser-setup

Prerequisites

  • Mozilla Firefox browser installed
  • Hex Proxies account with active plan
  • Your Hex Proxies gateway credentials

Steps

1

Open Firefox network settings

Navigate to Settings → General → scroll to Network Settings → click "Settings..." to open the Connection Settings dialog.

2

Select manual proxy configuration

Choose "Manual proxy configuration" radio button to enable the proxy input fields.

3

Enter HTTP proxy details

Set HTTP Proxy to gate.hexproxies.com and Port to 8080. Check "Also use this proxy for HTTPS" to cover encrypted traffic.

4

Configure SOCKS5 (optional)

For SOCKS5, clear the HTTP fields and enter gate.hexproxies.com in SOCKS Host with port 1080. Select SOCKS v5 radio button.

5

Enable DNS over proxy

Check "Proxy DNS when using SOCKS v5" to prevent DNS leaks and ensure full anonymity.

6

Set proxy exclusions

In the "No proxy for" field, enter localhost, 127.0.0.1, and any local network addresses you want to bypass.

7

Test the proxy connection

Click OK to save settings. Visit https://httpbin.org/ip to confirm your traffic is routing through the Hex Proxies IP.

Firefox's Built-In Proxy Advantage

Firefox is unique among major browsers because it includes its own proxy settings, independent of the operating system. This means you can configure a proxy in Firefox without affecting Chrome, Safari, or any other application on your computer. This isolation makes Firefox an excellent choice for proxy users who want dedicated proxy browsing alongside their normal browser.

Method 1: Manual Proxy Configuration

Accessing Proxy Settings

There are three ways to reach Firefox proxy settings:

  1. Menu: Settings → General → Network Settings → Settings...
  2. Address bar: Type about:preferences#general and scroll to Network Settings
  3. Quick access: Type about:preferences then search for "proxy"

HTTP/HTTPS Proxy Setup

In the Connection Settings dialog:

  1. Select Manual proxy configuration
  2. Enter the following:
HTTP Proxy: gate.hexproxies.com    Port: 8080
  1. Check Also use this proxy for HTTPS

This routes both HTTP and HTTPS traffic through the Hex Proxies gateway. Firefox will prompt for authentication on your first request — enter your Hex Proxies username and password. Check "Remember" to cache credentials for the session.

Separate HTTP and HTTPS Proxies

For advanced configurations, you can specify different proxies for each protocol:

HTTP Proxy:    gate.hexproxies.com    Port: 8080
HTTPS Proxy:   gate.hexproxies.com    Port: 8080
SOCKS Host:    gate.hexproxies.com    Port: 1080

This is useful when your proxy provider assigns different ports for different protocols.

Method 2: SOCKS5 Proxy Configuration

SOCKS5 is preferred for users who need full protocol coverage (not just HTTP/HTTPS), UDP support, and minimal header modification.

Setup Steps

  1. Open Connection Settings
  2. Select Manual proxy configuration
  3. Leave HTTP Proxy and HTTPS Proxy fields empty
  4. Enter in SOCKS Host:
SOCKS Host: gate.hexproxies.com    Port: 1080
  1. Select SOCKS v5
  2. Check Proxy DNS when using SOCKS v5

The "Proxy DNS" checkbox is critical — without it, DNS queries bypass the proxy and resolve through your ISP, leaking your real location.

SOCKS5 vs HTTP Proxy Comparison

  • SOCKS5 handles all traffic types (TCP/UDP), does not modify headers, and provides better anonymity
  • HTTP proxy only handles HTTP/HTTPS, may add X-Forwarded-For headers, but supports content caching
  • For web scraping and anonymity, SOCKS5 is generally superior
  • For content filtering and caching, HTTP proxy has advantages

Method 3: PAC File (Proxy Auto-Configuration)

PAC files let you define complex routing rules using JavaScript. Firefox natively supports PAC files — no extensions needed.

Creating a PAC File for Hex Proxies

Create a file named proxy.pac with the following content:

function FindProxyForURL(url, host) {
  // Bypass proxy for local addresses
  if (isPlainHostName(host) ||
      host === "localhost" ||
      host === "127.0.0.1") {
    return "DIRECT";
  }

// Route specific domains through Hex Proxies if (dnsDomainIs(host, ".targetsite.com") || dnsDomainIs(host, ".example.com")) { return "PROXY gate.hexproxies.com:8080; DIRECT"; }

// Default: direct connection return "DIRECT"; } ```

Loading the PAC File in Firefox

  1. Open Connection Settings
  2. Select Automatic proxy configuration URL
  3. Enter the file path: file:///Users/you/proxy.pac (macOS/Linux) or file:///C:/Users/you/proxy.pac (Windows)
  4. Click Reload then OK

For remote PAC files, enter the URL: https://your-server.com/proxy.pac

Method 4: about:config Advanced Tweaks

Firefox's about:config editor provides fine-grained proxy control beyond the GUI.

Useful Proxy-Related Preferences

Type about:config in the address bar and search for these keys:

network.proxy.type
  0 = Direct (no proxy)
  1 = Manual proxy configuration
  2 = PAC file
  4 = Auto-detect (WPAD)
  5 = System proxy settings

network.proxy.http → gate.hexproxies.com network.proxy.http_port → 8080 network.proxy.ssl → gate.hexproxies.com network.proxy.ssl_port → 8080 network.proxy.socks → gate.hexproxies.com network.proxy.socks_port → 1080 network.proxy.socks_version → 5 network.proxy.socks_remote_dns → true network.proxy.no_proxies_on → localhost, 127.0.0.1 ```

Disabling WebRTC IP Leak

WebRTC can reveal your real IP even when using a proxy. Disable it in Firefox:

media.peerconnection.enabled → false

Or limit it to proxy connections only:

media.peerconnection.ice.default_address_only → true
media.peerconnection.ice.no_host → true

Hex Proxies Integration

Session Management

Control IP rotation through your username format:

Rotating (new IP every request):
  Username: YOUR_USERNAME
  Password: YOUR_PASSWORD

Sticky (same IP for session): Username: YOUR_USERNAME-session-firefox01 Password: YOUR_PASSWORD ```

Change the session identifier (firefox01) to rotate to a new sticky IP.

Geographic Targeting

Append a country code to target specific locations:

Username: YOUR_USERNAME-country-us
Username: YOUR_USERNAME-country-de-session-sess01

Storing Credentials

Firefox stores proxy credentials in its built-in password manager. To manage saved proxy passwords:

  1. Navigate to about:logins
  2. Search for "gate.hexproxies.com"
  3. Edit or delete saved proxy credentials as needed

Firefox Multi-Account Containers Integration

Firefox Multi-Account Containers can be combined with proxy settings for isolated browsing contexts. While containers do not natively support per-container proxies, the Container Proxy extension adds this capability:

  1. Install Multi-Account Containers and Container Proxy extensions
  2. Create a container named "Hex Proxies"
  3. Assign your Hex Proxies proxy settings to that container
  4. Tabs opened in the "Hex Proxies" container route through the proxy while other tabs connect directly

Troubleshooting

"The proxy server is refusing connections" - Verify the host and port are correct in Connection Settings - Check that your Hex Proxies plan is active - Test connectivity: open a terminal and run curl -x http://gate.hexproxies.com:8080 https://httpbin.org/ip

Authentication popup keeps appearing - Clear saved passwords for the proxy host at about:logins - Re-enter credentials and check "Remember this password" - Verify your username/password in the Hex Proxies dashboard

Proxy works for HTTP but not HTTPS - Ensure you checked "Also use this proxy for HTTPS" or separately configured the HTTPS proxy field - Verify network.proxy.ssl and network.proxy.ssl_port are set in about:config

WebRTC IP leak - Set media.peerconnection.enabled to false in about:config - Alternatively, install the uBlock Origin extension which can block WebRTC leaks

FAQ

Does Firefox use system proxy settings by default? No. Firefox uses its own proxy settings by default (set to "Use system proxy settings" initially, but this can be changed). You can configure Firefox independently of your OS proxy.

Can I quickly switch between proxy and direct connection? Yes. Use the FoxyProxy extension for one-click proxy switching, or create bookmarklets that toggle network.proxy.type between 0 (direct) and 1 (manual).

Does Firefox support authenticated SOCKS5 proxies? Yes. When you configure a SOCKS5 proxy with authentication, Firefox will prompt for credentials on the first connection and can save them in the password manager.

How do I configure a proxy for only private browsing windows? Firefox does not natively support per-window proxy settings. Use Multi-Account Containers with the Container Proxy extension for isolated proxy contexts, or run a separate Firefox profile with distinct proxy settings.

Tips

  • Firefox is the best browser for proxy users because it has independent proxy settings — no need for extensions or system-wide changes.
  • Always enable "Proxy DNS when using SOCKS v5" to prevent DNS leaks through your ISP.
  • Disable WebRTC in about:config (media.peerconnection.enabled = false) to prevent IP leaks bypassing the proxy.
  • Use Firefox profiles (about:profiles) to maintain separate proxy configurations for different tasks.
  • The FoxyProxy extension provides one-click proxy switching if you frequently toggle between proxy and direct connections.

Ready to Get Started?

Put this guide into practice with Hex Proxies.