BuyProxy logo
Log inSign up

Proxy Server Port: Common Ports and How to Find Yours

A proxy server port is the number your proxy listens on. See what 8080, 3128, 1080, 80 and 443 mean, how to find your port and how to test it with curl.

BPThe BuyProxy Team
November 10, 202610 min read

A proxy server port is the number your device connects to on the proxy's host, written after a colon: in proxy.example.com:8080, the port is 8080. HTTP proxies often use 8080 or 3128 and SOCKS proxies 1080, but a provider can run a proxy on any port from 1 to 65535, so the right number is the one your provider lists for your proxy line. If you're new to proxies, what a proxy server is and how it works covers the basics.

What a Proxy Port Is

An IP address or hostname identifies a machine, and a port identifies one service on it. The same server can run an HTTP proxy on 8080 and a SOCKS proxy on 1080 at the same time, and the port in your connection tells it which one you want. TCP ports are numbered 0 to 65535, with 0 reserved, and IANA divides them into system ports (0 to 1023), user ports (1024 to 49151) and dynamic ports (49152 to 65535). Proxies usually listen on user ports such as 8080, 3128 or 1080, though nothing stops an operator from using 80 or 443.

In proxy server settings, the port has its own field next to the address: Port on Windows, macOS and iPhone, and Proxy port on Android. Our guide to changing or turning off proxy settings shows where those screens are. In code and command-line tools it goes at the end of the proxy URL, as in http://username:password@host:port.

What Is a Proxy IP?

A proxy IP is the IP address of a proxy server. In the simplest setup it is both the address your device connects to and the address websites see. With many paid proxies, rotating ones in particular, those are two different addresses:

  • The entry address is the host in your settings, often a hostname such as proxy.example.com. Your device connects to it on the port you were given.
  • The exit IP is the address the website sees. On a rotating residential gateway, the gateway picks the exit IP for you, so one host and port can give a different exit IP on each request.

That is why the host and port in your settings stay the same while the IP websites see changes. Our explainer on how a backconnect proxy gateway works follows a request through each hop. To find your current exit IP, send a request through the proxy to an IP echo service, as the curl commands below do, then paste the address into the IP checker to see its country and network.

Common Proxy Ports

These are the port numbers you'll see most often. Each one is a convention, so a number alone doesn't prove what's running on it.

PortUsual useWhere the convention comes from
8080HTTP proxies, and also web apps and test serversRegistered with IANA as http-alt, "HTTP Alternate"
3128HTTP proxiesSquid, the open-source caching proxy, normally listens on 3128; IANA has the number registered to an unrelated service
1080SOCKS4 and SOCKS5 proxiesRFC 1928, the SOCKS5 standard, says the service is conventionally on TCP port 1080
80Plain HTTP websites, and some HTTP proxiesThe standard HTTP port
443HTTPS websites, and proxies that accept encrypted connectionsThe standard HTTPS port

The registrations are listed in IANA's service name and port number registry, and the SOCKS convention is in RFC 1928.

Port 443 is easy to misread because it appears in two roles. When an HTTP proxy carries an HTTPS request, your client asks it to open a tunnel to the website's port 443 with the CONNECT method, whatever port the proxy itself listens on, and HTTPS traffic stays encrypted end to end through the proxy. An HTTPS proxy is something else: the connection to the proxy is itself encrypted, and it can listen on 443 like any HTTPS server. Fields labelled HTTPS in proxy settings, such as Secure web proxy on a Mac or HTTPS Proxy in Firefox, mean the proxy used for HTTPS sites, so they take the same HTTP proxy host and port. Our guide to HTTP proxies and the CONNECT method shows the request itself.

Why Providers Use Other Ports

Many paid proxies use numbers outside that table. One hostname can sit in front of several services, so a provider can tell products, protocols or regions apart by port, and some providers hand out a block of ports where each port maps to a session or a location. BuyProxy puts those options in the username instead: the country, plus state or city on Premium Residential, and the session are part of each line's username, so you never change the port to change location.

The port also has to get through your own network. Office, school and hotel networks sometimes allow outgoing connections only on a few ports, such as 80 and 443, so a proxy on another port can time out on such a network and work fine from home.

How to Find the Right Port for Your Proxy

Use the port your provider gives you for the exact line you're using. It appears in one of these places:

  • The proxy line itself. Lines usually come as host:port:username:password or username:password@host:port, so in proxy.example.com:12345:USERNAME:PASSWORD the port is 12345. The BuyProxy dashboard shows each line in both formats.
  • The provider's documentation, when its products use different gateways. On BuyProxy the host and port depend on the product (Premium Residential lines use a different host and port from Core Residential lines), so copy them from each line.
  • Your current proxy server settings, if a proxy is already set: the Port field on Windows, macOS, iPhone or in Firefox, or Proxy port on Android.

Keep the port in every proxy string. When it's missing, tools fill in a default that may not be your provider's port. The curl manual says curl assumes port 1080 for a proxy written without one and treats a proxy written without a scheme as an HTTP proxy, so a SOCKS line typed as plain host:port fails because curl speaks HTTP to it.

The scheme in front of the address decides the protocol: http:// for an HTTP proxy, and socks5:// or socks5h:// for SOCKS5. If you're not sure which one your tool needs, compare HTTP and SOCKS5 proxies first.

How to Test a Proxy Host and Port

Test in two steps: first that the port accepts connections from your network, then that the proxy works with your username and password. Replace HOST, PORT, USERNAME and PASSWORD with the values from your line.

Step 1: Check That the Port Is Reachable

On macOS or Linux:

nc -vz HOST PORT

In Windows PowerShell:

Test-NetConnection HOST -Port PORT

A success message from nc, or TcpTestSucceeded : True from PowerShell, means a service is listening on that port and your network lets you reach it. It doesn't check your credentials or the protocol yet.

Step 2: Send a Request Through the Proxy

For an HTTP proxy line:

curl -x "http://USERNAME:PASSWORD@HOST:PORT" https://api.ipify.org

For a SOCKS5 line:

curl -x "socks5h://USERNAME:PASSWORD@HOST:PORT" https://api.ipify.org

Each command prints the exit IP that websites see. With socks5h, the proxy also looks up the website's hostname, so DNS requests leave from the exit too. If your password contains characters such as @ or :, percent-encode them in the URL (curl decodes %40 and %3A) or pass the credentials separately:

curl -x "http://HOST:PORT" -U "USERNAME:PASSWORD" https://api.ipify.org

An IPv6 proxy needs a target with an IPv6 address, and api.ipify.org only has IPv4 ones, so test IPv6 lines against https://api64.ipify.org instead. When a request fails, add -v to see each connection step and the proxy's reply.

Reading the Result

What you seeLikely cause
Connection refusedThe host answered, but nothing accepts connections on that port. Check the port, then the host.
A timeout with no replyYour network blocks that outgoing port, or the host is wrong or offline. Run the same command from another network to tell which.
407 Proxy Authentication RequiredThe host and port are right, but the username or password isn't. Our proxy error codes guide covers the fixes.
The connection closes at once, or curl reports a SOCKS errorA protocol mismatch: an http:// URL pointed at a SOCKS port, or socks5:// at an HTTP port
http:// sites load but https:// sites failThe proxy doesn't allow CONNECT tunnels on that port, or the client isn't sending HTTPS through the proxy

Once a line answers, benchmark it over many requests before you rely on it for real work.

Ports and Protocols on BuyProxy

BuyProxy lines support HTTP, HTTPS and SOCKS5. You choose HTTP or SOCKS5 in the Protocol menu when you generate a line in the dashboard, and HTTPS websites work through an HTTP line by way of CONNECT. Each line comes with its own host, port, username and password, and the dashboard shows them for every line you generate, so there is no single BuyProxy port to memorize. For proxy settings on Windows, iPhone, iPad and Android, generate an HTTP line, since those screens take an HTTP proxy; BuyProxy's phone setup guide covers iPhone and Android.

Frequently Asked Questions

Q: What is the default port for a proxy server?
There isn't one for every proxy. HTTP proxies commonly use 8080 or 3128 and SOCKS proxies 1080, but paid proxies often use other numbers, so use the port listed for your line.

Q: Is port 8080 always a proxy?
No. IANA registers 8080 as an alternate HTTP port, and web apps and development servers use it too. A service on 8080 is a proxy only if it was set up as one.

Q: What port does SOCKS5 use?
Port 1080 by convention, as the SOCKS5 standard describes, but a SOCKS5 proxy can run on any port. Use the port on your SOCKS5 line, with socks5:// or socks5h:// in front of the address.

Q: What is the difference between a proxy IP and a proxy port?
The IP address or hostname identifies the proxy server, and the port identifies the proxy service running on it; you write them together as host:port. A rotating gateway adds a third address, the exit IP websites see, which can change while the host and port stay the same.

Q: Can a proxy use port 443?
Yes, a proxy can listen on 443 like any other server. That is separate from the 443 in a CONNECT request, which is the website's HTTPS port and appears whatever port your proxy uses.

Q: What are proxy server settings?
They are the fields where you tell a device, browser or app which proxy to use: the address and port, a username and password if the proxy needs them, a list of addresses to skip, and auto-detect options. The port from your proxy line goes in the Port field.

Summary

A proxy server port is the number after the colon in host:port. The common numbers, 8080 and 3128 for HTTP proxies and 1080 for SOCKS, are conventions, and the port your provider lists for your line is the one to use. Copy it with the right scheme in front, check it with nc or Test-NetConnection, then send a test request with curl -x before you set it up anywhere else.

If you need proxies to test with, BuyProxy sells residential, ISP, mobile and datacenter proxies by the GB from one wallet. Add funds by card or crypto, from $5, and buy GB of the product you need: Core Residential starts at 1 GB for $0.99, IPv6 is $0.29/GB, and unused GB doesn't expire. Compare BuyProxy's proxy types.

Need residential proxies right now? Add $5 or more to your wallet and buy from 1 GB at $0.99/GB.

Create an account →

Written by

BP

The BuyProxy Team

The BuyProxy team writes about residential proxy infrastructure, geo-targeting, session management, and best practices for scraping and data collection at scale.

Residential proxies from $0.99/GB

Add $5 or more to your wallet and buy from 1 GB. Credits never expire. Country targeting on every plan, with state, city and ASN targeting on Premium. HTTP, HTTPS and SOCKS5.

Create an account →