The right proxy type for Node-RED
Residential proxies suit automation that acts like a visitor, with a sticky session for anything that logs in. For testing your own site from other countries, any plan with the right country works; Residential Lite is the cheapest.
The values to enter in Node-RED
Every PiratProxies plan comes down to four values: host, port, username and password. Here they are for Residential; your own username and password are on your plan page.
| Host | resi.piratproxies.com |
|---|---|
| HTTP port | 8080 |
| SOCKS5 port | 1080 |
| Username | USERNAME |
| Password | shown on your plan page |
There is no separate country or session field: both are part of the username. Your plan page has a generator that writes it, and Targeting and sessions describes each piece.
Setting it up in Node-RED
- Open an
http requestnode and tickUse proxy. - Add a new proxy configuration with the address
http://resi.piratproxies.com:8080. - Tick the option to use proxy authentication and enter your username and password.
- Deploy, then trigger the flow against an IP-check address.
Menus move around between Node-RED versions, but the four values you enter never change.
Should Node-RED rotate IPs or keep one?
When Node-RED plays one visitor across several steps, a sticky session keeps the IP address unchanged from start to finish. When every run stands alone, drop the session and each run begins from a new address.
Here is what a sticky username looks like:
USERNAME-country-us-time-600-session-a1b2c3d4When Node-RED will not connect
- A proxy configuration is shared. Every http request node that selects it uses the same username, and so the same session.
- Error
407means the login was refused. Copy the username and password from your plan page once more, and make sure no space crept in and the username was not cut short. - An IP in the wrong country nearly always comes from the username, since the country code lives there. Other fixes.
Node-RED and proxies: questions
Which PiratProxies plan suits Node-RED best?
Residential proxies suit automation that acts like a visitor, with a sticky session for anything that logs in. For testing your own site from other countries, any plan with the right country works; Residential Lite is the cheapest.
Words used in this guide: headless browser, rotating proxy, sticky session, proxy authentication.
Node-RED belongs to its own developers, and PiratProxies has no connection with them; we name it only to say what this guide covers. Follow the rules of the sites you visit and our acceptable use policy.