Skip to content

How to Set Up a Proxy in Firefox

Firefox proxy settings step by step: where Configure proxy is now, the system default, HTTP or SOCKS5, the login prompt, DNS and No proxy for.

HProxy TeamAugust 7, 2026Updated October 3, 20268 min read

How to Set Up a Proxy in Firefox

Firefox is the browser people blame when a proxy misbehaves, and two things about it have changed. It follows your computer's proxy by default: its own source code makes "use the system proxy settings" the starting value. And its proxy settings have moved, from the bottom of the General page, where many guides still send you, to Privacy and security.

We ran Firefox ESR 153.4 and Firefox 157 on our own test machines, and read the dialog's labels, defaults and messages from Firefox's source. The screenshots below are ours.

Option in the dialogWhat it doesWhen to pick it
Use system proxy settingsUses your computer's proxy (the default)Your system proxy is right, or there is none
Manual proxy configurationUses the HTTP, HTTPS or SOCKS proxy you typeYou want Firefox, and only Firefox, on a proxy
Automatic proxy configuration URLFollows a PAC script at that addressYour company or school gave you one
Auto-detect proxy settings for this networkLooks for a PAC script on the networkA network that announces its proxy
No proxyConnects directlyTo rule the proxy out, or switch it off

Our free proxy setup generator writes the values for the steps below, and the same settings as user.js lines, for your own proxy, the list of sites to skip included.

Step 1: open Configure proxy

Open Firefox's Settings, choose Privacy and security (1) and, under Proxy settings, click Configure proxy (2). Typing proxy into Find in Settings at the top leads to the same place.

Firefox ESR 153 settings on Debian 13.5: mark 1 on Privacy and security in the sidebar, mark 2 on Configure proxy under Proxy settings.
Firefox ESR 153.4 on our test machine. Firefox 157 shows the same path. Older versions kept the button at the bottom of General, under Network Settings.

The dialog that opens, Connection Settings, starts with the heading Configure Proxy Access to the Internet. On a new profile it sits on Use system proxy settings (3):

Firefox's Connection Settings dialog with Use system proxy settings selected, marked 3, above the unused manual fields.
(3) Where a new profile starts, on our test machine. The dialog also notes that connections to localhost, 127.0.0.1/8 and ::1 are never proxied.

If your computer's proxy is already set, that is all: Firefox uses it. The rest of this page is for a proxy of Firefox's own.

Step 2: an HTTP proxy

Choose Manual proxy configuration, then:

  1. Type the address in HTTP Proxy, on its own, like 203.0.113.10, with no http://.
  2. Type the port in the Port box beside it, like 8080.
  3. Tick Also use this proxy for HTTPS, so https:// sites, which is nearly all of them, use the same proxy.
  4. Click OK.
Firefox's Connection Settings, Manual proxy configuration, for an HTTP proxy
SettingsFirefox

Privacy and securityConfigure proxy

Connection Settings

  • HTTP Proxy203.0.113.10Port8080
  • Also use this proxy for HTTPS
  • No proxy for.mozilla.org, .net.nz, 192.168.1.0/24
OKCancel
Source: Firefox's own labels, read from its source on 3 October 2026. The address and port are the examples on this page · hproxy.comProxy.

Or: a SOCKS5 proxy

Choose Manual proxy configuration and leave the HTTP rows empty:

  1. Type the address in SOCKS Host and the port beside it, often 1080.
  2. Choose SOCKS v5, unless your provider said SOCKS4.
  3. Look at Proxy DNS when using SOCKS v5. Firefox's default for it is on, which its source describes as making the proxy "SOCKS5h by convention": the proxy, not your computer, looks up the names of the sites you visit. Keep it on. The same box for SOCKS v4 starts off.
  4. Click OK.

The dialog has no login for SOCKS. If your SOCKS5 proxy needs a username and password, an extension can supply them: Mozilla's proxy API for extensions takes a username and password for SOCKS proxies. That is one place Firefox beats Chrome, whose own documentation says "No authentication methods are supported for SOCKSv5 in Chrome". Our FoxyProxy guide covers one such extension.

Step 3: the username and password

The dialog has no login fields for any proxy. For an HTTP proxy that wants a login, Firefox asks the first time it connects. On our test machine, with a test proxy that wants a password, this appeared at once:

Firefox's prompt: The proxy moz-proxy://127.0.0.1:8889 is requesting a username and password. The site says: lab, with Username and Password fields and a Sign in button.
Firefox ESR 153.4 asking for the login of our test proxy. Type the password as it is, with no encoding.

Type the login as your provider gave it, with no encoding; that is only needed when the login sits inside a URL. If Firefox has a saved login for the proxy, Do not prompt for authentication if password is saved in the dialog uses it without asking. Firefox's own tooltip: it "silently authenticates you to proxies when you have saved credentials for them. You will be prompted if authentication fails."

Keeping some sites off the proxy

Type them into No proxy for, separated by commas. Firefox's own example: .mozilla.org, .net.nz, 192.168.1.0/24, a domain with everything under it, another domain, and a block of addresses. The dialog adds that connections to localhost, 127.0.0.1/8 and ::1 are never proxied, so you don't need to list them.

The opposite, sending only some sites through the proxy, is beyond the built-in dialog; an extension such as FoxyProxy does it by URL pattern. When an extension controls the proxy, the dialog shows a Disable Extension button: the extension's setting wins until you press it.

Setting it from a file

The dialog writes ordinary Firefox preferences, and a Stack Overflow question read 167,418 times asks how to set them without it. Put lines like these into a file called user.js in your Firefox profile folder, and Firefox applies them at every start:

user_pref("network.proxy.type", 1);
user_pref("network.proxy.http", "203.0.113.10");
user_pref("network.proxy.http_port", 8080);
user_pref("network.proxy.ssl", "203.0.113.10");
user_pref("network.proxy.ssl_port", 8080);
user_pref("network.proxy.no_proxies_on", ".mozilla.org, 192.168.1.0/24");

network.proxy.type 1 is manual and 5, the default, is the system proxy; for SOCKS the names are network.proxy.socks, network.proxy.socks_port and network.proxy.socks_version. All of these names come from Firefox's own defaults file.

Check that it worked

Open this address in Firefox:

https://www.cloudflare.com/cdn-cgi/trace

The line starting with ip= is the address sites see; if it is the proxy's address, Firefox goes through the proxy. Then open https://hproxy.com/api/ip/ followed by that address: it names the country, city and network behind it. Before you put a proxy into Firefox at all, paste it into our free proxy checker, which reports whether it answers, its protocols, anonymity, country and latency.

When it does not work

Firefox proxy problems, what they mean, and the fix

What you seeWhat it meansFix
The proxy server is refusing connectionsNothing accepted the connection at that address and port, or the proxy refused it.Check the address and port, test the proxy; our guide to that error has every cause.
Firefox's message: The proxy server you have configured could not be found.The proxy's name does not resolve.Check the spelling of the host.
https:// pages skip the proxyOnly HTTP Proxy is filled in.Tick Also use this proxy for HTTPS.
The login box keeps coming backNo saved login, or a wrong one.Check the login; with one saved, tick Do not prompt for authentication if password is saved.
A SOCKS5 proxy with a login never worksThe dialog has no SOCKS login.Use an extension, or the provider's HTTP port.
The settings are greyed outAn extension or a policy controls the proxy.Press Disable Extension, or ask whoever manages the computer.

Firefox's source: connection.ftl, appstrings.properties; our own screenshots

  • "Firefox ignores your system proxy." Its default is to use it.
  • "Scroll to the bottom of General and open Network Settings." That is an older Firefox; current versions keep Configure proxy under Privacy and security.
  • "Tick Proxy DNS when using SOCKS v5, it is off by default." Current Firefox starts with it on.

Turning it off

Open Configure proxy again and choose No proxy, or Use system proxy settings if your computer's own setting is clean, then OK. If you set the proxy in user.js, remove the lines there too, or Firefox puts them back at the next start.

About free proxies

Free entries come and go, so test one before you rely on it, and switch Firefox back when you are done. For daily use, a paid proxy can keep one address for a sticky session.

How we wrote this

We ran fresh Firefox profiles on our own test machines, Firefox ESR 153.4 on Debian 13.5 and Firefox 157 on Fedora 44, in September and October 2026, and read Firefox's source on 3 October 2026: the dialog's labels (connection.ftl), its defaults (StaticPrefList.yaml and the preference defaults), the login prompt (commonDialogs.properties) and its messages (appstrings.properties), plus Mozilla's documentation of the extension proxy API and Chromium's proxy documentation.

Limits: our screens are from Firefox on Linux; Windows and macOS builds show the same dialog from the same source files, but we did not capture them there. Firefox for Android is not covered.

Sources

All read on 3 October 2026.

  • Firefox source (github.com/mozilla-firefox/firefox): browser/locales/en-US/browser/preferences/connection.ftl, modules/libpref/init/StaticPrefList.yaml, modules/libpref/init/all.js, toolkit/locales/en-US/chrome/global/commonDialogs.properties, dom/locales/en-US/chrome/appstrings.properties.
  • MDN: proxy.ProxyInfo for Firefox extensions (developer.mozilla.org).
  • Chromium: Proxy support in Chrome, net/docs/proxy.md (chromium.googlesource.com).
  • Stack Overflow question 843340; Super User questions 805686 and 58277.
  • Our own screenshots of Firefox ESR 153.4 on Debian 13.5.

Frequently asked questions

Where are the proxy settings in Firefox?

In current Firefox: Settings, Privacy and security, then Configure proxy under Proxy settings, in the Connection and software security part. Typing proxy into Find in Settings leads to the same place. Older Firefox versions kept the button at the bottom of the General page, under Network Settings.

Does Firefox use my Windows, macOS or Linux proxy?

Yes, by default. Firefox's own source sets its proxy type to 5, use the system proxy settings, and a new profile on our test machines opened on Use system proxy settings. Firefox only goes its own way after someone picks Manual proxy configuration or a PAC address.

Should I tick Also use this proxy for HTTPS?

Yes, if you have one ordinary HTTP proxy. The box fills the HTTPS row with the same proxy, so https:// sites, which is nearly all of them, go through it too.

What is Proxy DNS when using SOCKS v5?

It decides whether the proxy or your computer looks up site names when you use a SOCKS5 proxy. Firefox's own default for it is on, which its source calls making the proxy SOCKS5h by convention, so with SOCKS5 the proxy already resolves names. The matching box for SOCKS v4 starts off.

Where do I type the proxy username and password in Firefox?

Nowhere in the dialog: it has no login fields. Firefox asks the first time an HTTP proxy wants one, in a box that reads The proxy, its address, is requesting a username and password. With Do not prompt for authentication if password is saved ticked, a saved login is used without asking.

Can Firefox use a SOCKS5 proxy with a username and password?

Not through its own dialog, which has no SOCKS login. An extension can: Mozilla's proxy API for extensions takes a username and password for SOCKS proxies. That is one place Firefox beats Chrome, which supports no login for SOCKS5 at all.

How do I keep some sites off the proxy in Firefox?

List them in No proxy for, separated by commas, like .mozilla.org or 192.168.1.0/24. Connections to localhost, 127.0.0.1/8 and ::1 are never proxied anyway. To send only some sites through the proxy, you need an extension such as FoxyProxy.

Can I set Firefox's proxy without opening the dialog?

Yes, with Firefox's preferences in a user.js file in the profile folder, for example network.proxy.type 1 with network.proxy.http and network.proxy.http_port. The names come from Firefox's own defaults file.

How do I turn the proxy off in Firefox?

Open Configure proxy again and choose No proxy, or Use system proxy settings if your computer's own setting is clean. Then click OK.

Proxies that don't die mid-job

Residential, ISP, datacenter and mobile, verified by the same engine that runs tens of millions of checks. They read as a real device and hold up under load. Pay as you go, and your balance never expires. $0.44/GB is the 2,000 GB+ rate; a single gigabyte is $0.50/GB, with no minimum order.

129M+ proxy checks run · 100+ countries · HTTP / HTTPS / SOCKS · re-checked every few minutes · no signup

HProxy.

Honest guides and comparisons on proxies, scraping and staying unblocked, from the team that runs the network.

RSS feed