What a port is
An IP address identifies a machine; a port identifies a service on that machine. Web servers listen on port 443 for HTTPS and 80 for HTTP. A proxy server listens on its own port, and your client connects to proxy-ip:port. Get the port wrong and you'll get "connection refused" or a timeout, even if everything else is correct.
Common proxy ports
| Port | Typically used for |
|---|---|
| 8080 | Generic HTTP proxy (very common default) |
| 3128 | Squid's default HTTP proxy port |
| 8000, 8888 | Alternative HTTP proxy ports |
| 1080 | SOCKS (SOCKS4/SOCKS5) default |
| 80, 443 | Proxies disguised as web traffic, or TLS-wrapped proxies |
| 9050 | Tor's local SOCKS port |
| 10000 to 60000 range | Provider-specific ports for sessions, countries or individual IPs |
None of these are mandatory. A proxy can listen on any port. They're conventions.
How proxy providers use ports
Commercial providers often give ports meaning:
- Port per IP. Datacenter and IPv6 services often expose hundreds of IPs through one gateway hostname, each on a different port. Port 10001 might exit from IP #1, port 10002 from IP #2, and so on.
- Port per country. Some residential gateways use a different port per country, for example 10000 for any country, 10001 for US, 10002 for UK.
- Port per session type. One port range rotates every request; another gives sticky sessions.
- Separate ports for protocols. HTTP on one port, SOCKS5 on another.
- Separate ports for auth type. Whitelisted IPs on one port, credentials on another.
This is especially common when you use IP whitelisting, because there's no username in which to encode targeting, so the port carries it instead.
Port-related problems
- Connection refused: nothing is listening on that port, or the port is for a different protocol (for example, you sent HTTP to a SOCKS port).
- Timeout: a firewall is blocking the outbound port. Corporate and some cloud networks block unusual ports. Try a provider port on 80 or 443 if available.
- Wrong country or no rotation: you're on a port with different settings from what you expected.
- Works in one tool, not another: one tool might default to SOCKS and another to HTTP for the same port.
Test a port directly:
nc -vz gate.example.com 7777
curl -v -x http://USER:PASS@gate.example.com:7777 https://httpbin.org/ipSee common proxy errors and how to check if a proxy works.
Do port numbers affect detection?
Websites don't see the port you used to reach your proxy. They see the proxy's outbound connection, from an ephemeral port, to their port 443. However, some network-level scanners probe IPs for open proxy ports like 8080 and 3128 to flag them as proxies. That's another reason datacenter IPs with open proxy ports get flagged, and one reason residential proxies are harder to detect.
Proxy tip: If you want to try these ideas on a real network, Geonode sells pay-as-you-go residential bandwidth that doesn't expire, so a small balance is enough to experiment with rotation, sticky sessions and geo-targeting. See our Geonode proxies guide for how its products fit together.
Reading a provider's port documentation
Here's a typical example of how a residential provider might document its ports (illustrative, not a real provider):
| Port | Behaviour |
|---|---|
| 7777 | Rotating, any country, username auth |
| 7778 | Sticky sessions (10 minutes), username auth |
| 10001 to 10099 | Sticky per port, whitelisted IP auth |
| 1080 | SOCKS5 gateway |
When you see a table like this, check three things before configuring your tool:
- Which authentication each port expects. Sending credentials to a whitelist-only port, or no credentials to an auth port, both fail.
- Which protocol. HTTP clients pointed at a SOCKS port fail with confusing errors.
- Whether behaviour is controlled by port or by username. Some providers do both; the port usually wins.
Ports and firewalls
Corporate networks, some hotel Wi-Fi and some cloud environments restrict outbound ports. Symptoms include timeouts to the proxy while normal browsing works. Options:
- Ask the provider for an endpoint on port 80 or 443.
- Use a different network or a server outside the restricted network.
- If you control the firewall, allow outbound connections to the provider's gateway on its port.
On your own servers, also check outbound rules in cloud security groups: some default templates restrict unusual egress ports.
Ports on self-hosted proxies
If you run your own proxy, pick a port and protect it:
- Squid listens on 3128 by default (
http_port 3128). - Dante and 3proxy often use 1080 for SOCKS.
- Restrict access with a firewall to your own IPs, and require authentication. Open proxies on well-known ports are scanned and abused quickly.
Port numbers in proxy lists
Sneaker bots and many tools accept lists in host:port:user:pass format. With providers that map IPs to ports, a list might contain the same gateway hostname many times with different ports, each line a different exit. That's normal. See sneaker proxy setup guide.
What the official port registry says
Port numbers are coordinated by IANA, which publishes the service name and port number registry. Comparing it with proxy habits is a useful reminder that most "proxy ports" are conventions, not rules:
| Port | IANA registration (TCP) | What proxies use it for |
|---|---|---|
| 1080 | socks | SOCKS proxies; the one genuinely registered proxy port |
| 8080 | http-alt (HTTP alternate) | HTTP proxies and test web servers |
| 3128 | An unrelated service | Squid's default |
| 8000, 8888 | Unrelated services | Alternative HTTP proxy ports |
| 9050 | An unrelated service | Tor's local SOCKS port |
Two practical lessons follow.
First, a port number tells you nothing reliable about the protocol behind it. Always use what your provider documents, and test with curl when in doubt.
Second, firewalls and security scanners often treat 1080, 3128 and 8080 as "proxy ports", so traffic to them is more likely to be blocked on locked-down networks than traffic to 443. If your provider offers an endpoint on 443, it's often the quickest fix on hotel, office or university Wi-Fi.
If a system-level setting might be pointing at the wrong port, check proxy setup on macOS or proxy setup on Windows. For the other terms used here, see the proxy glossary.
FAQ
Can I change the port of my proxy?
Only on proxies you run yourself (for example in Squid's http_port). With providers, you choose from the ports they offer.
Is port 8080 safe?
The number itself has no security meaning. What matters is who runs the proxy and how it's configured.
Editorial note: Proxy providers change their pools, features and prices often, so treat any figures here as typical ranges at the time of writing and confirm current terms with the provider before you buy.