Bandwidth Supply

What is Peer Relay?

A peer relay is the server that bandwidth-sharing devices connect out to, and through which customer traffic is handed down to those devices. Because each device dials the relay and keeps the connection open, it needs no public address and no open port, which is how phones and home lines behind NAT or CGNAT can act as proxy exits.

The design is a backconnect arrangement turned inside out. The customer connects to a gateway; the device has already connected to a relay; the relay pairs the two and passes bytes between them. The device never has to accept a connection from outside, which removes the port-forwarding problem that would otherwise rule out every phone on a carrier network and most home routers.

On PROXIES.SX the sequence is published in full. A device registers and receives a JWT valid for one hour, a refresh token valid for seven days, and the URL of its assigned relay. It opens a WebSocket to that relay with the JWT in the Sec-WebSocket-Protocol header. Relays are regional, and the platform assigns the nearest one, for example relay-us.proxies.sx for US and Latin American peers, because "a far relay caps a single TCP stream by latency"; a relay_redirect message moves a peer when a nearer one exists. The peer sends a heartbeat every 30 seconds, and a peer silent for 120 seconds is closed and marked offline.

Customer traffic arrives as tunnels. The relay sends a JSON tunnel_connect message with a session ID, host and port; the device opens a TCP socket to that host and answers tunnel_connected; bytes then flow both ways untouched, as binary WebSocket frames when the device has advertised the binary-v1 protocol. A device may hold up to six WebSockets, and the Node.js reference client, version 1.6.0, opens four by default. The older proxy_request message is deprecated for new clients.

The failure the contract warns about most is a client that accepts the tunnel and completes a fast handshake but never forwards the TLS bytes, so it looks healthy while carrying nothing. The relay expects the first data within five seconds of tunnel_connect, and three such failures unlist the device. A self-test, POST /v1/peer/my-devices/{id}/test, runs the same CONNECT, TLS and HTTP request a customer would make once the device is online. Any client method is accepted as long as the IP is real, the traffic flows through the device and it speaks the relay protocol.

Where you meet it

You meet the peer relay when you write or debug a bandwidth-sharing client, or when you wonder why a device on your network holds one long-lived outbound connection to a single host. It is also the answer to the common question of how a phone with no public IP can serve as a proxy at all.

Common questions

Why does a bandwidth-sharing device connect to a relay instead of opening a port?

Most phones and many home connections sit behind NAT or carrier-grade NAT and cannot accept inbound connections. An outbound connection to a relay works through both and needs no router changes, because customer traffic reaches the device over a connection the device itself opened.

What is tunnel_connect?

It is the PROXIES.SX relay message that starts a customer tunnel. It carries a session ID, a host and a port; the device opens a TCP connection to that host and port, replies tunnel_connected, and then relays bytes in both directions without modifying them until either side closes.

Why is my device online but carrying no traffic?

Being online is not the same as being listed. A PROXIES.SX device needs at least an hour online, a quality score of 50 or more and the minimum speed before it is routed customers, and a client that drops TLS bytes after the handshake gets unlisted. Run the self-test to check the tunnel path, and GET /v1/peer/my-devices/{id}/verification for the listing checks.

Related terms

Exit Node
An exit node is the device whose IP address a proxied request finally leaves from, so the destination site sees and logs that device's address instead of the customer's. In residential and mobile proxy networks the exit is usually a phone, computer or router running bandwidth-sharing software; in Tor the same term names a circuit's last relay.
Backconnect Proxy
A backconnect proxy is a single hostname and port that fronts a pool of many IP addresses. The client keeps one connection string while the provider's gateway assigns a different exit IP per request, per session or on a timer. Rotation and pool health checks happen upstream, where the client cannot see them.
CGNAT
Carrier-grade NAT is address translation performed by an ISP rather than in the customer's router, putting many subscribers behind one public IPv4 address. Mobile networks depend on it. Each customer holds a private or shared-range address, usually from 100.64.0.0/10, and the carrier rewrites the source address and port on every outbound flow.
NAT
Network Address Translation rewrites the address and port fields of packets as they cross a router, letting many private hosts share one public IP. The router keeps a translation table, mapping each outbound flow to a free public port and reversing the rewrite on replies. Home routers do this for a household; carriers do it for whole regions.
Bandwidth Sharing
Bandwidth sharing means letting a proxy network route other people's internet traffic through your connection, usually by running a small client on a phone, computer or server, in exchange for payment for the traffic carried. To the destination site, that traffic appears to come from your IP address, which is what the network actually sells.
Proxyware
Proxyware is software that turns a device into an exit point for a proxy network, relaying other people's traffic through that device's internet connection. The term comes from security research, where it covers legitimate bandwidth-sharing clients the owner chose to install and the same clients planted on machines without the owner's knowledge.
Proxyjacking
Proxyjacking is installing proxyware on a machine you have broken into, so that its bandwidth and IP address can be sold through a proxy network for the attacker's benefit. Sysdig's Threat Research Team defined the term in April 2023, comparing it to cryptojacking: the attacker profits from stolen network access instead of stolen processor time.
Bandwidth-Sharing SDK
A bandwidth-sharing SDK is a library an app developer embeds so the app can relay proxy traffic through its users' connections, with the developer paid for the traffic carried. Google Play allows proxy services for third parties only in apps where that is the primary, user-facing core purpose, and holds developers responsible for the SDKs they ship.
Informed Consent
Informed consent, in bandwidth sharing, means the device owner understands that their connection will carry other people's internet traffic, what that involves and how to stop, and agrees before any traffic flows. It separates a bandwidth-sharing app a person chose to run from proxyware placed on their device without their knowledge.
USDC on Solana
USDC on Solana is Circle's dollar stablecoin issued as a token on the Solana blockchain, identified by the mint address EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v. A Solana wallet can hold it alongside native SOL, but they are different assets, so a payout setting has to name the currency and the network.

Real 4G/5G mobile and residential IPs

PROXIES.SX runs carrier IPs in 100+ countries with HTTP and SOCKS5 on every endpoint. $4/GB down to $2.40/GB at volume, free endpoints and rotation, and your GB never expire.