curl with a UK home IP

curl is the quickest way to check that your login works and to see the UK IP that sites will see.

Before you start

You need a ProxyPi login. The free 100 MB trial is enough to test this guide. Copy HOST, PORT, USERNAME and PASSWORD from your dashboard. Examples that read PROXYPI_HTTP expect http://USERNAME:PASSWORD@HOST:PORT in that environment variable.

HTTP port

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

SOCKS5 port

Terminal
# socks5h:// asks the proxy to resolve hostnames too, so DNS lookups also leave from the UK exit
curl -x socks5h://USERNAME:PASSWORD@HOST:PORT https://api.ipify.org

Keep the password out of your shell history

Terminal
export PROXYPI_HTTP="http://USERNAME:PASSWORD@HOST:PORT"
curl -x "$PROXYPI_HTTP" https://api.ipify.org

Good to know

  • Use the SOCKS5 port with socks5:// or socks5h://, and the HTTP port with http://. A scheme on the wrong port fails to connect.
  • If your password contains @, : or /, URL-encode it (for example @ becomes %40).
  • For a speed test through the proxy, see Resources.

Official documentation

Third-party APIs change. We checked these against the official docs on 23 November 2026. If something has moved, the linked docs win.

Try it on a real UK home line

The trial is 100 MB of UK residential data. No card needed. Your host, port and login are in your dashboard once you have signed up.

Use ProxyPi within the acceptable use policy and the terms of the sites and tools you use.