Proxy server address and port: what they are and where to find them
Published 14 min read
In short
A proxy server address is the host, a domain name or an IP address, that a program connects to, and the port is the number on which the proxy accepts connections. Your proxy provider gives them with a login and password, often as one host:port:login:password string; on a work network, the administrator does. A proxy that is already set up shows in the Windows, macOS or Firefox settings.
To work through a proxy, a program needs to know where to connect. That is the proxy server address: the host, a domain name or an IP address, plus the port. If the proxy requires a sign-in, a login and password come on top. Below: where to get them, how to find a proxy that is already set up and what port numbers mean. How a proxy works in general is covered in what is a proxy server.
Host and port in plain words
The host answers “which computer to connect to”, the port answers “which program on it”. In postal terms, the host is the building’s street address and the port is the apartment number: without it, a letter reaches the building but not the person.
- The host is a domain name, such as
proxy.example.invalid, which the program turns into an IP address through DNS before connecting, or an IP address itself, such as203.0.113.10. The URI syntax standard, RFC 3986, allows exactly these in the host field: a registered name, an IPv4 address, or an IPv6 address in square brackets. - The port is a number from 1 to 65535. The TCP header has 16 bits for the port number (RFC 9293), and port 0 is reserved in the IANA registry. One server can accept connections on several ports, and each port can run a different service.
For Proxeta residential and mobile proxies, the host is the gateway’s domain name, the same in every string, while for ISP proxies it is the IP address of the proxy itself. The examples use placeholder data: the name proxy.example.invalid and the address 203.0.113.10 from a block that RFC 5737 sets aside for documentation.
The proxy’s port and the site’s port are different things
The program connects to the proxy’s port, 8080 for example, and the proxy then connects to the site on the site’s port: 443 for https:// and 80 for http://. For an https:// site, an HTTP proxy learns the site’s name and port from a CONNECT request, whose target under RFC 9110 is only the host and port separated by a colon, such as example.com:443. The proxy settings take the proxy’s port; the program adds the site’s port by itself.
IPv6 addresses
An IPv6 address has colons of its own, so in a URL it goes in square brackets: http://[2001:db8::10]:8080. Without them, a program cannot tell where the address ends and the port begins: in our test, curl given http://::1:28080 stopped with Port number was not a decimal number between 0 and 65535, and with http://[::1]:28080 it connected.
The four fields and the host:port:login:password string
Connecting to a proxy with authentication takes four values:
| Field | What it is | Example |
|---|---|---|
| Host (server, address) | The proxy server’s domain name or IP address | proxy.example.invalid or 203.0.113.10 |
| Port | The number on which the proxy accepts connections | 8080 |
| Login (username) | The name you sign in to the proxy with | demo-login |
| Password | The password you sign in with | demo-password |
Programs name these fields differently: in Windows, the host field is called “Proxy IP address”, though a domain name goes in it too, and in Firefox it is “HTTP Proxy” or “SOCKS Host”. The Windows and Firefox proxy settings have no login field: the browser asks for it in a separate window when an HTTP proxy requires a sign-in.
Providers often hand out all four values as one string. At Proxeta, the format is host:port:login:password:
proxy.example.invalid:8080:demo-login:demo-password
If a program asks for separate fields, split the string at the colons: host, port, login, password. Many command-line tools and libraries need a URL with the protocol’s scheme: http://login:password@host:8080 for HTTP or socks5h://login:password@host:1080 for SOCKS5; @, : and / in the password are encoded in the URL. More in proxy string format and connecting a proxy.
In Proxeta residential and mobile strings, the login is long: it holds the location, proxy type, session and filter separated by hyphens, so copy it whole. Sign-in is by login and password only, with no IP allowlisting. The password is the same for all strings of the account.
Where to get a proxy address
From your proxy provider
The host, port, login and password come from your proxy provider, usually in a dashboard. At Proxeta:
- Residential and mobile proxies come from the “Generate proxies” section of the Dashboard. Choose the “Connection type”, the location, the “Protocol” (HTTP on port 8080, SOCKS5 on port 1080) and the “Session type”, then copy the strings one by one, with “Copy all” or as a file with “Download .txt”.
- The Telegram bot @proxetabot sends ready HTTP strings with port 8080 and SOCKS5 strings with port 1080. The bot gives out sticky sessions only.
- ISP proxies are in the “ISP proxies” section, “My proxies” tab. The order’s “Current proxies” block shows each proxy’s IP address and port, login and password. Take the port from there too, not from the residential strings. More in ISP proxies.
On a work or school network
If you need the proxy to reach the internet from an organization’s network, the network administrator gives you its address and port; Microsoft’s help also says you might need to contact your IT department for these details. Such a proxy can also be set up automatically, in which case there is nothing to enter by hand; more on that below. If the proxy does not connect on a work network, ask the administrator too.
Which proxy your computer already uses
If a program already works through a proxy and you want to know its address, look where the program takes its settings from. Chrome and Edge take the proxy from the Windows or macOS settings, Safari from the macOS settings, and Firefox has its own; more in how to set up a proxy in your browser. Menu names follow the Microsoft and Apple help pages and the Firefox interface as of December 2026 and may differ in other versions.
Windows
Open Settings → “Network & internet” → “Proxy” (Microsoft help). The page has two parts:
- Automatic proxy setup. If “Automatically detect settings” is on or “Use setup script” has a script address, the proxy is chosen automatically (see PAC and WPAD below).
- Manual proxy setup. If “Use a proxy server” is on, select “Set up” next to it: the window shows the “Proxy IP address” and “Port” fields and a list of addresses that skip the proxy.
macOS
Open the Apple menu → “System Settings” → “Network”, select the network service you use (Wi-Fi, for example), then “Details” → “Proxies” (Apple help). Each proxy type that is turned on, “Web proxy (HTTP)”, “Secure web proxy (HTTPS)” or “SOCKS proxy”, shows its own server and port. “Auto proxy discovery” or “Automatic proxy configuration” with a PAC file address means automatic setup.
In Terminal, the same settings are shown by:
scutil --proxy
If a web proxy is on, the output has HTTPEnable : 1, and the host and port sit in the HTTPProxy and HTTPPort keys; HTTPS and SOCKS have HTTPSProxy and SOCKSProxy, and the PAC file address is ProxyAutoConfigURLString. If no proxy is set, these keys are not in the output.
Firefox
In Firefox settings, find “Proxy settings” and click “Configure proxy” (Mozilla help). The “Connection Settings” window has one of these options selected:
- “No proxy”: no proxy is used;
- “Use system proxy settings”: Firefox takes the proxy from Windows or macOS, so look there;
- “Manual proxy configuration”: the host and port are in the “HTTP Proxy” and “SOCKS Host” fields;
- “Auto-detect proxy settings for this network” or “Automatic proxy configuration URL”: automatic setup.
Environment variables
Command-line programs can take the proxy from environment variables. curl, for example, reads http_proxy, HTTPS_PROXY and ALL_PROXY according to its documentation, and a value there works the same as the --proxy flag. To check in bash or zsh:
env | grep -i _proxy
Empty output means there are no such variables.
Automatic setup: PAC and WPAD
Instead of a host and port, the settings may hold the address of a proxy auto-configuration (PAC) file. According to MDN, it is a JavaScript function, FindProxyForURL(url, host), that returns DIRECT (no proxy) for each request or, for example, PROXY host:port or SOCKS host:port: the proxy’s host and port are written in the file itself. A program can also find such a file on the network by itself through the WPAD protocol, but it is described only in a 1999 IETF draft that has expired and never became a standard. If the proxy on your network is set up automatically, the easiest way to learn its address is to ask the administrator.
Ports 8080, 3128, 1080, 80 and 443: what they usually mean
Port numbers have service names assigned in the IANA port registry. The table below follows the registry as of December 4, 2026 (last updated November 30, 2026).
| Port | Service in the IANA registry | What it means for a proxy |
|---|---|---|
| 8080 | http-alt, an alternate HTTP port | HTTP proxies run on it too, Proxeta’s among them |
| 3128 | ndl-aas, unrelated to proxies | The suggested configuration in Squid’s documentation has this proxy server listen on port 3128, which is why the number shows up on HTTP proxies built on Squid |
| 1080 | socks | The SOCKS port: under RFC 1928, the SOCKS service is conventionally located on TCP port 1080. At Proxeta, it runs SOCKS5 |
| 80 | http | The port of http:// sites: if a site’s address has no port, 80 is used (RFC 9110) |
| 443 | https, HTTP over TLS | The port of https:// sites. In a CONNECT request, it is usually the site’s port, not the proxy’s |
A port number is a hint, not a guarantee. The IANA registry itself notes that traffic on a registered port does not necessarily correspond to the service assigned to it, and a server’s owner can run a proxy on any free port. Which protocol runs on which port is something your provider tells you.
The port depends on the protocol
When a proxy supports both HTTP and SOCKS5, the protocols often have different ports, and you take the port for the protocol your program supports.
- Proxeta residential and mobile proxies: HTTP on port 8080, SOCKS5 on port 1080. HTTP and SOCKS5 strings with the same settings differ only in the port, and the protocol is chosen in the “Protocol” field when you generate strings.
- Proxeta ISP proxies work over HTTP and SOCKS5, and each proxy’s IP address and port are shown in the order.
Browsers with a login and password work over HTTP, Telegram on a phone over SOCKS5. How the protocols differ is covered in HTTP or SOCKS5.
How to check that the host and port answer
The command below is for bash and zsh (macOS and Linux), with placeholder data, and needs no login:
curl -sS --max-time 15 -o /dev/null \
-w 'proxy: %{http_connect}, site: %{http_code}\n' \
--proxy http://proxy.example.invalid:8080 \
https://api64.ipify.org
%{http_connect} is the proxy’s response code to the CONNECT request, %{http_code} the site’s response code. If the proxy requires a sign-in, the answer proxy: 407, site: 000 with the message curl: (56) CONNECT tunnel failed, response 407 is a good sign: an HTTP proxy answers at this address and port and asks for a login. Under RFC 9110, 407 Proxy Authentication Required means you need to authenticate to use the proxy for the request.
For SOCKS5, change the address to socks5h://proxy.example.invalid:1080: without a login, a SOCKS5 proxy that requires one answers curl: (97) No authentication method was acceptable. How to check the login, exit IP, location and speed is covered in how to check a proxy.
If the proxy cannot be reached, curl prints proxy: 000, site: 000 and one of the errors below; its other errors are covered in curl with a proxy.
| curl message | What it means | What to check |
|---|---|---|
(5) Could not resolve proxy: proxy.example.invalid | The host name was not found in DNS | A typo in the host. The placeholder proxy.example.invalid from the examples never resolves |
(7) Failed to connect to ... port 8080 after ... ms: Couldn't connect to server | The connection was refused: the computer answered right away, but nothing accepts proxy connections on that port | The port and protocol. On a work network, a firewall may reject the connections: ask the administrator |
(28) Connection timed out after ... milliseconds | No answer: the address is wrong or unreachable, the connection is silently dropped on the way, or the proxy accepted it and stays silent | The host or IP address, whether the scheme matches the port, your network and antivirus; on a work network, ask the administrator |
The commands were run on December 4, 2026 on macOS with curl 8.7.1 against local test HTTP and SOCKS5 proxies on 127.0.0.1 and a test site on the same computer, not through the Proxeta gateway; the messages in the common mistakes section were produced the same way. The timeout came from a port that accepts the connection and stays silent, with --max-time 5. Other curl versions may word the errors differently.
Common mistakes
| Mistake | What happens | How to fix it |
|---|---|---|
| A space inside the address, for example before the port | curl cannot parse the address: Unsupported proxy syntax ... Malformed input to a URL function | Remove the space |
| Swapped fields: the login and password entered in place of the host and port | The program takes the password for a port number; curl says Port number was not a decimal number between 0 and 65535 | In a Proxeta string, the order is host, port, login, password |
The scheme does not match the port: http:// with the SOCKS5 port or socks5h:// with the HTTP port | The proxy cannot understand the request. Our test proxy dropped the connection in the first case (Recv failure: Connection reset by peer), and in the second it hung until the timeout | http:// with port 8080, socks5h:// with port 1080 |
| The proxy address in the browser’s address bar | The browser contacts the proxy as if it were a website. What it shows depends on the proxy, but the proxy is neither turned on nor tested that way | Enter the host and port in the proxy settings |
Do not publish proxy strings or the output of commands that include your login: they contain your password. Use proxies within the law, the rules of the sites you visit and the Acceptable Use Policy.
Frequently asked questions
What is a proxy server address?
It is the host a program connects to: a domain name such as proxy.example.invalid or an IP address such as 203.0.113.10. It always comes with a port, the number on which the proxy accepts connections, for example 8080. If the proxy requires a sign-in, a login and password come on top.
How do I find the proxy address and port on my computer?
In Windows, open Settings → “Network & internet” → “Proxy”; in macOS, System Settings → “Network” → your network service → “Details” → “Proxies”; in Firefox, the “Connection Settings” window. Chrome and Edge use the system settings. If a setup script or auto-detection is on, the proxy address is written in a PAC file, and the easiest way to learn it is to ask the administrator.
Which port should I use for a proxy?
The one your provider gave you: there is no single proxy port. You may come across 8080 and 3128 on HTTP proxies and 1080 on SOCKS. For Proxeta residential and mobile proxies, HTTP runs on port 8080 and SOCKS5 on port 1080, and the port of an ISP proxy is shown in the order on the “My proxies” tab.
What does port 8080 mean?
In the IANA port registry, 8080 is assigned to the http-alt service, an alternate HTTP port. The number does not guarantee the protocol, though: the server’s owner decides what runs on a port. At Proxeta, port 8080 is used by HTTP proxies.
Why does the proxy say Connection refused?
The connection was refused: the computer at that address answered, but nothing accepts proxy connections on that port, or a firewall rejects them. Check the port and the protocol: at Proxeta, 8080 is for HTTP and 1080 for SOCKS5. If there is no answer at all and the request times out, check the host and port, and on a work network ask the administrator.
Can I connect to a proxy with just the IP and port, without a login?
It depends on the proxy: some let you in without a login, for example by the client’s IP address. Proxeta proxies work only with a login and password and have no IP allowlisting, so you cannot connect to them without a login.
Can I type the proxy address into the browser’s address bar?
No. The address bar opens websites, and a proxy is not a website: the browser sends it an ordinary page request, what it shows in response depends on the proxy, and the proxy is neither turned on nor tested that way. The host and port go into the proxy settings, either the system’s or the browser’s.