How to Set Up and Test a Proxy in Firefox

Choose the Firefox connection settings that match your proxy, then compare the reported IP before and after the change. The same browser profile lets you check whether your traffic uses the connection you configured.

Laptop displaying browser settings beside a compact server rack on a wooden desk

Open Firefox’s proxy settings on desktop

Open the Firefox menu, choose Settings and select General. Scroll to Network Settings and click Settings…. You can also search for proxy on the Settings page. Keep the dialog open long enough to note the current mode and any exceptions. That gives you a known configuration to restore after a temporary test. Mozilla’s connection settings reference

Choose Manual proxy configuration when you have a hostname and port to enter yourself. Use system proxy settings takes its instructions from the operating system. Auto-detect proxy settings for this network and Automatic proxy configuration URL are for networks that supply configuration automatically. A configuration file can choose different routes for different destinations. If your organization manages Firefox or an extension controls its connection settings, check that policy or extension before changing modes. The connection dialog identifies extensions that control these settings.

Set up an HTTP proxy for HTTPS websites

  1. Enter the proxy hostname, such as proxy.example, in HTTP Proxy. Enter the port your provider supplied, such as 3128, in the adjacent port field. Use the hostname or IP by itself when the dialog gives you separate fields.
  2. Select Also use this proxy for HTTPS if the provider has confirmed that this endpoint can carry HTTPS site traffic. If your network supplies a separate proxy for HTTPS destinations, fill in that field instead.
  3. Review No proxy for. A rule covering your test hostname will send that request directly. Keep any workplace exceptions required by your network. Save with OK.

When Firefox opens an HTTPS page through an ordinary HTTP proxy, it asks the proxy to open a tunnel with CONNECT. Firefox then negotiates TLS with the site through that tunnel. The checkbox governs which website requests use the proxy. The protocol Firefox uses to connect to the proxy is a separate detail, so follow the provider’s Firefox or managed configuration instructions if its endpoint requires TLS itself. Compare HTTP, HTTPS and SOCKS5 proxies

An HTTP proxy can ask for authentication with 407 Proxy Authentication Required. Enter the proxy username and password if Firefox presents an authentication dialog for that proxy. If the dialog keeps coming back, verify the host and port, the password and any source IP allowlist your provider uses. A site’s own sign-in prompt belongs to that site. Look at the hostname in the prompt before supplying credentials. Troubleshoot HTTP 407

Set up a SOCKS5 proxy and choose how DNS is resolved

  1. Select Manual proxy configuration and fill in SOCKS Host and its port. Use the host and port from your provider. Leave the HTTP and HTTPS fields empty when SOCKS5 should carry both kinds of website requests.
  2. Select SOCKS v5. Check Proxy DNS when using SOCKS v5 if Firefox should ask the SOCKS proxy to resolve destination hostnames. Current Firefox defaults to proxy DNS for SOCKS5, so verify the setting if you are reusing an existing profile or one with an administrator policy.
  3. Save the settings and open a fresh test page. If Firefox needs to resolve the proxy’s own hostname, it still needs a working route to find and reach that endpoint.

The built-in desktop Manual proxy configuration dialog has fields for a SOCKS host and port, and version selection. Its HTTP proxy password prompt is separate from SOCKS5 username and password authentication. If your SOCKS5 provider requires a username and password, confirm which Firefox integration the provider supports. Firefox’s WebExtensions proxy API can pass SOCKS5 credentials, so an approved extension that explicitly supports this feature can be an option. A provider may also offer an IP-authorized endpoint you can enter directly. Mozilla’s manual SOCKS5 authentication issue and Mozilla’s extension proxy API

Firefox’s DNS over HTTPS settings govern how Firefox handles DNS lookups it performs. The SOCKS5 proxy DNS checkbox chooses where a destination lookup goes for the proxied connection. Check both settings if DNS behavior is the symptom. The IP check below reports the source IP of one web request. To verify a particular DNS resolver, use a test that measures DNS resolution separately. Mozilla’s DNS over HTTPS guide

Confirm the Firefox proxy with an exit IP check

In the same Firefox profile, open https://testmyproxies.com/api/my-ip before and after the change. Reload the page after saving so Firefox makes a new request. Write down the ip value returned each time and compare the second one with the provider’s expected exit. The address of the proxy gateway you entered may differ from the address the website sees. Rotating gateways can also produce different exits on successive requests. Read a browser exit IP test

If both requests show the same address, check that the IP page is absent from the bypass list, that HTTPS is assigned to the intended proxy and that your extension or network policy has applied the expected rule. If Firefox reports a refusal or timeout, verify that the proxy service listens on the supplied port. A test from a terminal on the same machine can help separate a local network issue from a Firefox configuration issue. Run a comparison with curl

When the IP check works and a specific site still fails, capture the failing URL and error for that request. An HTTPS certificate warning calls for checking the hostname and, on managed networks that inspect TLS, the organization’s approved trust setup. Restore the original Firefox proxy mode when you are done testing if that was your intended configuration.

All proxy testing guides · Open the proxy tester