Web browsers

How to set up a proxy in Firefox

Firefox is the only major desktop browser with its own proxy settings, separate from the operating system. That makes it a simple way to browse through a proxy in one browser while every other app on the computer stays on your normal connection.

Below are the exact Connection Settings values for HTTP and SOCKS5, how the sign-in prompt works, an extension for quick switching and SOCKS5 passwords, and the about:config settings that keep WebRTC behind the proxy.

Updated 23 November 2026

What you need
Hostgate.firstproxy.shop
HTTP / HTTPS port8000
SOCKS5 port9000
Usernameuser-country-fr
PasswordYOUR_TOKEN

The built-in settings authenticate HTTP on port 8000 through a prompt. SOCKS5 on port 9000 with a password needs the FoxyProxy extension or an IP allowlist. Your username and token appear on the Proxy setup page of your dashboard after your first order.

Setup

How do I connect Firefox to a proxy?

Follow the steps in order. Replace YOUR_TOKEN with the token from your dashboard and change the country, city or session in the username to suit the job.

  1. Open Connection Settings

    Open the menu, choose Settings, stay on the General panel and scroll to the end. Under Network Settings click Settings. You can also type about:preferences in the address bar and search for proxy.

  2. Enter the HTTP proxy

    Choose Manual proxy configuration and fill in the fields below. The HTTPS checkbox sends secure sites through the same proxy, which is what you want: they are tunnelled and stay encrypted.

    Enter the HTTP proxy: settings
    FieldValue
    Manual proxy configurationSelected
    HTTP Proxygate.firstproxy.shop
    Port8000
    Also use this proxy for HTTPSChecked
    No proxy forlocalhost, 127.0.0.1
  3. Sign in with your username and token

    Load any page. Firefox shows a dialog saying the proxy is requesting a username and password. Enter the full username with targeting and your token. You can let the password manager remember them.

    Sign in with your username and token: settings
    FieldValue
    User Nameuser-country-fr-city-paris-session-ff1-ttl-60m
    PasswordYOUR_TOKEN

    Firefox reuses the credentials until it restarts. Change the session part of the username for a new IP.

  4. Use SOCKS5 with Proxy DNS

    Clear the HTTP fields and fill in the SOCKS section instead. Proxy DNS sends hostname lookups through the proxy, so your own DNS server does not see the sites you visit. The built-in settings cannot send a SOCKS5 password, so this works when your public IP is on the allowlist in the dashboard.

    Use SOCKS5 with Proxy DNS: settings
    FieldValue
    SOCKS Hostgate.firstproxy.shop
    Port9000
    SOCKS v5Selected
    Proxy DNS when using SOCKS v5Checked
  5. Switch faster with FoxyProxy

    FoxyProxy Standard, from the Firefox add-ons site, stores proxies with their credentials and switches with one click. In Firefox it can also send a username and password to SOCKS5. Add a proxy with these values, then select it from the toolbar icon.

    Switch faster with FoxyProxy: settings
    FieldValue
    TypeHTTP (or SOCKS5)
    Hostnamegate.firstproxy.shop
    Port8000 (or 9000 for SOCKS5)
    Usernameuser-country-fr
    PasswordYOUR_TOKEN
  6. Keep WebRTC behind the proxy

    Type about:config, accept the warning and search for the preferences below. The first keeps WebRTC on the proxy when one is set. The second turns WebRTC off entirely, which also disables video calls in the browser.

    Keep WebRTC behind the proxy: settings
    FieldValue
    media.peerconnection.ice.proxy_only_if_behind_proxytrue
    media.peerconnection.enabledfalse (optional)
Test

How do I check that the proxy works?

Visit ipinfo.io/json. Firefox shows the JSON in its viewer, with the IP and city of the exit. Then run a WebRTC leak test and a DNS leak test to confirm nothing goes around the proxy.

A working proxy returns a response like the one shown, trimmed to the main fields. The IP belongs to the exit, the city and country follow your username, and the time zone is where that IP is located, here France.

ipinfo.io/json response
{
  "ip": "203.0.113.24",
  "city": "Paris",
  "country": "FR",
  "timezone": "Europe/Paris"
}

203.0.113.24 is a documentation address. Your result shows a real exit IP.

Targeting

How do I set country, city and session in the username?

All targeting is written into the username, so Firefox needs no extra settings to change location. Parts are joined with hyphens in this order after your proxy user. The password is always your token.

Proxy username parts
PartFormatExampleRule
Country-country-{cc}-country-frRequired. Two-letter country code in lowercase. 64 countries are available.
City-city-{city}-city-parisOptional. City name in lowercase, spaces become hyphens. 172 cities are available.
Session-session-{id}-session-a1b2c3Optional. Any letters and digits you choose. The same id keeps the same IP, a new id gets a new IP.
Session length-ttl-{minutes}m-ttl-30mUsed with a session. Residential 1 to 120 minutes, mobile 1 to 60, long-acting ISP up to 720 (12 hours).
Full usernameuser-country-fr-city-paris-session-a1b2c3-ttl-30m

Find country codes and city values on the proxy locations page.

Troubleshooting

Firefox proxy errors and fixes

The problems people run into most often with Firefox, with the message you are likely to see and how to solve it.

The proxy server is refusing connections

Firefox cannot reach the gateway. Check the host and the port in Connection Settings, and that no security software blocks port 8000 or 9000.

The sign-in dialog appears again and again

Wrong credentials, or an old password saved in the password manager. Remove the saved login for the proxy in Settings, Privacy and Security, Saved logins, then sign in again.

SOCKS5 fails or never asks for a password

Built-in SOCKS settings send no credentials. Use FoxyProxy with a username and password, or allowlist your public IP.

DNS leak test shows your provider

With SOCKS5, tick Proxy DNS when using SOCKS v5. If DNS over HTTPS is on in Privacy and Security, the leak test may show that resolver, which is separate from the proxy.

Some pages load without the proxy

Check the No proxy for list, and look for an add-on that manages proxies on its own. Only one proxy add-on should control the settings at a time.

FAQ

Firefox proxy questions

Short answers to what people ask most about using a proxy with Firefox.

Where are the proxy settings in Firefox?

Open Settings, stay on General, scroll to Network Settings and click Settings. Choose Manual proxy configuration and enter the host and port.

Does Firefox use the system proxy?

Only when Use system proxy settings is selected. With Manual proxy configuration Firefox uses its own values, so other apps are not affected.

How do I use a SOCKS5 proxy with a password in Firefox?

The built-in settings cannot send SOCKS5 credentials. Install FoxyProxy, add the proxy as SOCKS5 with a username and password, and select it from the toolbar.

What does Proxy DNS when using SOCKS v5 do?

It sends hostname lookups to the proxy instead of your own DNS server. That keeps lookups at the exit location and prevents DNS leaks.

Get your token and run the first Firefox request

Create an account, top up from $40 with crypto, and copy the gateway, username and token from the dashboard.