Skip to content

How to find your proxy server address and port

By the ProxyOnly team · 25 Nov 2026 · 5 min read

Find the proxy your machine is already configured to use on Windows, macOS, Linux and in browsers, or find the host and port of a proxy you bought.

People searching for this want one of two different things, and the answers have nothing in common.

The first is: my computer or network is using a proxy and I need to know its address, usually because an application is asking me to type it in. The second is: I bought a proxy and I need to find the details to use it. Work out which one you have, then skip to that half.

Finding the proxy your machine already uses

Windows

Settings, then Network and internet, then Proxy. The Manual proxy setup section shows the address and port if one is set. If Automatic proxy setup shows a setup script address instead, your proxy is chosen by a PAC file and there may be no single address; open that URL in a browser to read the rules.

From a terminal, this prints the same settings:

reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

Look at ProxyEnable and ProxyServer.

macOS

System Settings, then Network, then your active connection, then Details and Proxies. Each protocol has its own entry, so check both Web Proxy (HTTP) and Secure Web Proxy (HTTPS); they are often different.

From a terminal:

scutil --proxy

That prints every configured proxy at once, including the PAC file URL if there is one, which is faster than clicking through the panes.

Linux

Most desktops store it in environment variables. Check them first:

env | grep -i proxy

GNOME keeps its own setting separately:

gsettings get org.gnome.system.proxy mode
gsettings get org.gnome.system.proxy.http host
gsettings get org.gnome.system.proxy.http port

Note that command-line tools and the desktop can disagree. A terminal respects the environment variables, while the browser may follow the desktop setting, which is why curl and Firefox sometimes behave differently on the same machine.

Browsers

Chrome and Edge use the system settings and their proxy page links straight to them. Firefox is the exception: it has its own, under Settings, General, Network Settings. A machine where Firefox works and Chrome does not, or the reverse, is almost always this.

Extensions override everything. If you have ever installed a proxy switcher, check it before you trust any of the above. Proxy switcher extensions covers how they take precedence.

When there is no proxy to find

On a corporate network the proxy is often transparent: traffic is intercepted at the router and no setting exists on your machine at all. Nothing in the panels above will show it. The signs are a TLS certificate issued by your employer and a Via header on responses. If you need the address in that case, ask whoever runs the network, because your computer genuinely does not know it.

Finding the details of a proxy you bought

Here the honest answer depends on the provider, and providers differ more than you would expect.

Some sell access through a single shared hostname with a port per country, and your credentials select the rest. Others give each proxy its own address. The second model is what we use: every proxy you order has its own host, port, username and password, there is no shared hostname to point at, and the values arrive when the order is filled. You will find them on the order page and under Proxies in the dashboard.

That difference matters in practice. With a shared gateway you configure one address and change a username to change country. With per-proxy addresses you hold a list, and switching country means using a different entry from that list. Neither is better in the abstract, but code written for one needs changing for the other, and a surprising amount of tutorial code online assumes the gateway model without saying so.

The four values go together like this:

curl -x http://USERNAME:PASSWORD@HOST:PORT https://icanhazip.com

If that prints an IP address that is not yours, the proxy works. Three failures and what they mean:

  • It hangs and prints nothing: the host or port is wrong, or something is blocking the connection.
  • It returns 407: the username or password is wrong. See 407 Proxy Authentication Required.
  • It returns 502: the proxy accepted you but could not reach the site.

Setting it, once you have found it

Finding the address is usually a step toward using it somewhere. Three places cover most cases.

For command-line tools, the environment variables are read by curl, wget, pip, npm and a great many others:

export HTTPS_PROXY="http://USERNAME:PASSWORD@HOST:PORT"
export HTTP_PROXY="$HTTPS_PROXY"
export NO_PROXY="localhost,127.0.0.1"

NO_PROXY matters more than it looks. Without it, requests to your own machine go out to the proxy and come back refused, which breaks local development in ways that take a while to connect to the proxy you set an hour earlier.

For a single command, skip the variables entirely and pass it inline with curl -x. This is the right way to test, because it changes nothing else on the machine.

For code, set it per client rather than globally, so that one part of an application can use a proxy while the rest does not. How to use a proxy in every major programming language has the syntax for each.

Which port should it be

There is no single answer, and anyone who gives you one is guessing. 8080 and 3128 are conventional for HTTP proxies, 1080 for SOCKS, but a provider can use any port, and many assign one per proxy. Use the number you were given rather than a number you read somewhere.

What the port does not tell you is the protocol. An HTTP proxy and a SOCKS5 proxy on the same port behave differently, and pointing an HTTP client at a SOCKS port usually produces a timeout rather than a clear error. SOCKS4 vs SOCKS5 vs HTTP covers the difference, and what is port 8080 covers the conventions and where they come from.

Checking it is doing what you think

Knowing the address is not the same as knowing it works. Two checks are worth running.

Confirm the exit address changed. Request an IP echo service through the proxy and without it, and compare. They should differ.

Confirm nothing is leaking. A proxy that carries your HTTP traffic while your DNS queries go out directly still tells a network observer every site you visit, and WebRTC in a browser can reveal your real address even when the page loads through the proxy. DNS and WebRTC leaks covers testing for both.

Try it yourself

Create an account, add funds from US$1 and order a proxy in the country you need.

Keep reading