Puppeteer with a UK home IP
Puppeteer passes the proxy to Chrome as a launch flag, then answers the login prompt with page.authenticate().
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.
Node.js
import puppeteer from "puppeteer";
const browser = await puppeteer.launch({
args: ["--proxy-server=http://HOST:PORT"],
});
const page = await browser.newPage();
await page.authenticate({ username: "USERNAME", password: "PASSWORD" });
await page.emulateTimezone("Europe/London");
await page.goto("https://api.ipify.org");
console.log(await page.evaluate(() => document.body.innerText));
await browser.close();
Good to know
- Use the HTTP port. Chrome does not support SOCKS5 with a username and password.
- Call
page.authenticate()on every new page before you navigate.
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.