How to set up a SOCKS5 proxy in Firefox

Firefox is the only major browser with its own proxy settings, independent of the operating system. It supports SOCKS5 and can send DNS through the proxy, but, like Chrome, it does not send a SOCKS5 username and password.

5 min read · updated November 20, 2026

Configure the proxy in Firefox settings

Open Settings, search for "proxy", and choose Settings under Network Settings. Select Manual proxy configuration, enter the SOCKS host and port, choose SOCKS v5, and tick Proxy DNS when using SOCKS v5. Leave the HTTP proxy fields empty unless you want an HTTP proxy instead.

With Proxynesia S5 Client on Windows, enter 127.0.0.1 as the SOCKS host and 40000 as the port. The client handles the credentials, so Firefox does not need them.

Firefox Network Settings for a local SOCKS5 proxy
FieldValue
Configure proxy accessManual proxy configuration
SOCKS Host127.0.0.1
Port40000
SOCKS versionSOCKS v5
Proxy DNS when using SOCKS v5On

Why “Proxy DNS” matters

Without Proxy DNS, Firefox looks up every hostname through your normal resolver and then asks the proxy to connect to the resulting address. Websites see the proxy's IP, but your DNS provider sees every site you visit, and some sites resolve to different servers by region, which can give you results for the wrong country.

With Proxy DNS on, the hostname is sent to the proxy and resolved at the exit, which keeps lookups consistent with the exit location.

Proxies that require a password

Firefox will not send a SOCKS5 username and password. You have two options: use the HTTP proxy fields instead, for which Firefox shows a login prompt, or run a local client that holds the credentials and offers the proxy without a password.

A separate Firefox profile for proxied browsing is a good habit: it keeps cookies and history for the proxy separate from your everyday browsing.

Start a separate Firefox profilebash
firefox -P -no-remote   # opens the profile manager; create "proxy"

SOCKS5 with a password: use FoxyProxy

Firefox's built-in connection settings have no fields for a SOCKS5 username and password. Extensions can supply them, so FoxyProxy Standard is the simplest way to use a password-protected SOCKS5 proxy in Firefox, and to switch between several proxies with one click.

  • Install FoxyProxy Standard from Firefox Add-ons and open its Options.
  • Add a proxy: type SOCKS5, the host and port from your dashboard, then the username and password.
  • Turn on the option to send DNS through the proxy, so lookups leave from the exit too.
  • Select the proxy from the toolbar icon and check your IP.

Stop WebRTC from leaking your real IP

Even with a proxy set, WebRTC (used for video calls) can reveal your real public IP to a site. In Firefox you can turn it off completely: open about:config, search for media.peerconnection.enabled and set it to false. Video calls in the browser stop working until you turn it back on.

Run a WebRTC leak test before and after, so you know the change worked.

Different proxies for different jobs: profiles

Each Firefox profile keeps its own settings, cookies and proxy. Open about:profiles, create a profile per proxy or per location, and launch them side by side. Nothing leaks from one profile to another, which keeps logins tied to the right IP.

FAQ

Questions people ask

Does the Firefox proxy setting affect other apps?
No. Firefox's manual proxy applies only to Firefox, unlike the system proxy used by Chrome and Edge.
Can I use an authenticated SOCKS5 proxy in Firefox?
Not directly. Use the HTTP proxy fields with credentials, or a local client that offers the proxy without a password.
How do I turn the proxy off again?
In Network Settings choose No proxy, or switch back to your normal Firefox profile.
Can Firefox use a SOCKS5 proxy with a password?
Not through the built-in settings, which have no username and password fields for SOCKS. An extension like FoxyProxy can pass them.
Does turning off WebRTC break anything?
Browser video and voice calls (Meet, Discord in the browser and similar) stop working until you turn it back on. Normal browsing is unaffected.

Keep reading

Related guides

How to use a SOCKS5 proxy in Chrome (extension and settings)

Set up a SOCKS5 proxy in Google Chrome with a proxy extension (FoxyProxy) or launch flags on Windows, macOS and Android, and why Chrome ignores SOCKS5 passwords.Read the guide →

How to check that your proxy works and which IP it uses

Verify a proxy from a browser or the command line, check the exit IP, location and DNS, and fix the usual reasons a proxy shows your real IP.Read the guide →

HTTP vs SOCKS5 proxy: differences and when to use each

HTTP and SOCKS5 proxies compared: how they work, speed, security, DNS, authentication and app support, with a quick rule for choosing.Read the guide →

Try it yourself

Activate a premium or IP-targeted proxy and use it in any browser or app, on Windows, Android or in your own code.