{"id":364,"date":"2026-11-20T09:30:00","date_gmt":"2026-11-20T04:00:00","guid":{"rendered":"https:\/\/proxykite.com\/blog\/?p=364"},"modified":"2026-11-20T09:30:00","modified_gmt":"2026-11-20T04:00:00","slug":"playwright-proxy-setup","status":"publish","type":"post","link":"https:\/\/proxykite.com\/blog\/playwright-proxy-setup\/","title":{"rendered":"Playwright Proxy Setup: HTTP, SOCKS5, and Rotation"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A <strong>playwright proxy<\/strong> is configured when you launch the browser or create a browser context, not after a page is already running. This guide shows the working pattern in Node.js and Python, including authenticated HTTP proxies, SOCKS5, one context per dongle, and controlled IP rotation.<\/p>\n\n\n\n<aside class=\"ap-card\" aria-label=\"ProxyKite per-dongle licence\">\n<span class=\"ap-card__badge\">Our pick<\/span>\n<div class=\"ap-card__body\"><p class=\"ap-card__name\">ProxyKite per-dongle licence<\/p><p class=\"ap-card__best\">Best for anyone turning their own 4G\/LTE dongles + SIMs into HTTP\/SOCKS5 mobile proxies, from 1 dongle to hundreds<\/p><ul class=\"ap-card__features\"><li>Every dongle becomes an HTTP + SOCKS5 proxy on a public port of our cloud router \u2014 no static IP or port forwarding, works behind CGNAT<\/li><li>IP rotation on demand, by rotation link, or on a timer from 60 s to 7 days (sticky option); returns old + new IP<\/li><li>One-line installer on a Raspberry Pi \/ Linux box; Huawei E3372 HiLink is the reference stick<\/li><li>SIM inbox for carrier messages, bandwidth limits per day\/week\/month, live traffic insights<\/li><li>Sub-users, white-label (your logo\/colours), REST API, webhooks and Telegram alerts included<\/li><li>Flat price, traffic is free \u2014 rides on your own SIM data plans<\/li><\/ul><\/div>\n<div class=\"ap-card__side\"><p class=\"ap-card__price\">$9 per dongle <small>per month<\/small><\/p><a class=\"ap-card__btn\" href=\"https:\/\/proxykite.com\/#pricing\">Talk to us \u2192<\/a><\/div>\n<\/aside>\n\n\n\n<h2 class=\"wp-block-heading\">What you need<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before changing your Playwright code, collect one complete proxy record:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><code>HOST<\/code> \u2014 the proxy hostname or IP address<\/li>\n\n\n<li><code>PORT<\/code> \u2014 the HTTP or SOCKS5 port<\/li>\n\n\n<li><code>USERNAME<\/code> and <code>PASSWORD<\/code> \u2014 if you use credential authentication<\/li>\n\n\n<li>The rotation link or API details, if your workflow changes the mobile IP between jobs<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You also need a supported Playwright project and a browser binary. For Node.js, install Playwright with <code>npm install playwright<\/code>; for Python, use <code>python -m pip install playwright<\/code>. Then install Chromium with <code>npx playwright install chromium<\/code> or <code>playwright install chromium<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ProxyKite turns your own Huawei E3372 HiLink dongle and SIM into an HTTP and SOCKS5 proxy endpoint. The software and cloud routing handle the public route, so the box does not need a static IP or an inbound port opened. The data plan remains yours; ProxyKite does not supply the SIM, dongle, IP address, or bandwidth.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the proxy format, keep the host, port, username, and password separate in your application. The <a href=\"https:\/\/proxykite.com\/docs\/guide\/proxy-formats\">ProxyKite proxy format guide<\/a> explains the same values in <code>host:port:user:pass<\/code>, <code>user:pass@host:port<\/code>, and CSV exports.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the hardware is not ready yet, see <a href=\"https:\/\/proxykite.com\/blog\/huawei-e3372-proxy\/\">Huawei E3372 Proxy: HiLink to 4G Proxy<\/a> and the <a href=\"https:\/\/proxykite.com\/blog\/powered-usb-hub-for-4g-dongles\/\">powered USB hub guide<\/a> before you assign routes to workers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Choose browser-level or context-level proxy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use a browser-level proxy when every page in the browser should use the same route. Use a context-level proxy when separate workers, accounts, or dongles need separate routes and isolated cookies.<\/p>\n\n\n\n<figure class=\"wp-block-table ap-table\"><table><thead><tr><th>Requirement<\/th><th>Correct Playwright boundary<\/th><th>Why<\/th><\/tr><\/thead><tbody><tr><td>One route for the whole process<\/td><td><code>chromium.launch({ proxy })<\/code> or <code>chromium.launch(proxy=...)<\/code><\/td><td>Every context in that browser inherits the launch route unless it defines another one.<\/td><\/tr><tr><td>Several dongles in one process<\/td><td><code>browser.newContext({ proxy })<\/code> or <code>browser.new_context(proxy=...)<\/code><\/td><td>Each context can map to a different endpoint and has separate browser state.<\/td><\/tr><tr><td>Change the route for a running page<\/td><td>Close the context and create another one<\/td><td>Playwright does not expose a <code>page.setProxy()<\/code> or <code>context.setProxy()<\/code> operation.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The official <a href=\"https:\/\/playwright.dev\/docs\/network\" target=\"_blank\" rel=\"noopener\">Playwright network guide<\/a> documents both scopes. A page is inside a context, so putting several pages in one context does not give each page a different proxy.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Configure an authenticated HTTP proxy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For browser automation, start with an HTTP proxy endpoint. Playwright can tunnel HTTPS target traffic through an HTTP proxy, and its proxy object accepts the credentials separately from the server address. Do not put <code>USERNAME:PASSWORD@<\/code> in the <code>server<\/code> field.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Node.js<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>const { chromium } = require('playwright');\n\nconst proxy = {\n  server: 'http:\/\/HOST:HTTP_PORT',\n  username: process.env.PROXY_USERNAME,\n  password: process.env.PROXY_PASSWORD,\n};\n\n(async () =&gt; {\n  const browser = await chromium.launch({\n    headless: true,\n    proxy,\n  });\n\n  const page = await browser.newPage();\n  await page.goto('https:\/\/example.com', { waitUntil: 'domcontentloaded' });\n  console.log(await page.title());\n  await browser.close();\n})();<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Python<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nfrom playwright.sync_api import sync_playwright\n\nwith sync_playwright() as p:\n    browser = p.chromium.launch(\n        headless=True,\n        proxy={\n            \"server\": \"http:\/\/HOST:HTTP_PORT\",\n            \"username\": os.environ[\"PROXY_USERNAME\"],\n            \"password\": os.environ[\"PROXY_PASSWORD\"],\n        },\n    )\n\n    page = browser.new_page()\n    page.goto(\"https:\/\/example.com\", wait_until=\"domcontentloaded\")\n    print(page.title())\n    browser.close()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The browser should open the page and print its title. If the proxy rejects the credentials, the navigation will fail with an authentication or tunnel error. Keep secrets in environment variables or your secret store; do not commit them to a test file, a screenshot, or a trace.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use Playwright Test&#8217;s <code>use.proxy<\/code> setting in <code>playwright.config.ts<\/code> when every test in a project should use the same route. For a pool of dongles, context-level configuration is more useful because one browser process can host multiple isolated contexts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Map one browser context to one dongle<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The context is the useful unit for a mobile-proxy pool. Give each context one endpoint, its own cookies, and one logical task. This keeps a login flow and its browser state associated with one route.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Node.js: several contexts<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>const { chromium } = require('playwright');\n\nconst routes = [\n  {\n    server: 'http:\/\/DONGLE_1_HOST:DONGLE_1_PORT',\n    username: process.env.DONGLE_1_USER,\n    password: process.env.DONGLE_1_PASSWORD,\n  },\n  {\n    server: 'http:\/\/DONGLE_2_HOST:DONGLE_2_PORT',\n    username: process.env.DONGLE_2_USER,\n    password: process.env.DONGLE_2_PASSWORD,\n  },\n];\n\n(async () =&gt; {\n  const browser = await chromium.launch({ headless: true });\n\n  for (const route of routes) {\n    const context = await browser.newContext({ proxy: route });\n    const page = await context.newPage();\n    await page.goto('https:\/\/example.com', { waitUntil: 'domcontentloaded' });\n    console.log(await page.title());\n    await context.close();\n  }\n\n  await browser.close();\n})();<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Python: one context per task<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nfrom playwright.sync_api import sync_playwright\n\nroutes = [\n    {\n        \"server\": \"http:\/\/DONGLE_1_HOST:DONGLE_1_PORT\",\n        \"username\": os.environ[\"DONGLE_1_USER\"],\n        \"password\": os.environ[\"DONGLE_1_PASSWORD\"],\n    },\n    {\n        \"server\": \"http:\/\/DONGLE_2_HOST:DONGLE_2_PORT\",\n        \"username\": os.environ[\"DONGLE_2_USER\"],\n        \"password\": os.environ[\"DONGLE_2_PASSWORD\"],\n    },\n]\n\nwith sync_playwright() as p:\n    browser = p.chromium.launch(headless=True)\n    for route in routes:\n        context = browser.new_context(proxy=route)\n        page = context.new_page()\n        page.goto(\"https:\/\/example.com\", wait_until=\"domcontentloaded\")\n        print(page.title())\n        context.close()\n    browser.close()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In a real worker, replace the <code>for<\/code> loop with your queue and make the route part of the job assignment. Close the context in a <code>finally<\/code> block so cookies, pages, and connections do not stay attached to a finished task. If you have ten dongles, create ten route records; you do not need ten separate Playwright installations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ProxyKite&#8217;s per-dongle licence is <strong>$9 per dongle per month<\/strong>, billed monthly by Paddle.com, with no per-GB charge. It is a fit when you own the hardware and SIMs but want the cloud routing, proxy ports, rotation controls, quotas, and operator panel managed in one place.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Use SOCKS5 when the client needs it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Playwright supports a SOCKS5 server address. Change only the scheme and port in the proxy object:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const context = await browser.newContext({\n  proxy: {\n    server: 'socks5:\/\/HOST:SOCKS5_PORT',\n  },\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The equivalent Python form is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>context = browser.new_context(\n    proxy={\"server\": \"socks5:\/\/HOST:SOCKS5_PORT\"}\n)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">There is an important authentication detail. Playwright&#8217;s official examples describe <code>username<\/code> and <code>password<\/code> for HTTP(S) proxy authentication, while the server field documents SOCKS support. If an authenticated SOCKS5 endpoint fails, use the HTTP endpoint for Playwright or use an IP allowlist on the SOCKS5 route if your proxy setup supports it. Do not assume that adding HTTP-style credentials to a SOCKS5 configuration will work in every browser engine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For ProxyKite, each dongle exposes HTTP and SOCKS5 access. Choose the HTTP port when you want the clearest username\/password path in Playwright; choose SOCKS5 when your environment specifically requires it and its authentication mode is compatible. The <a href=\"https:\/\/proxykite.com\/docs\/guide\/authentication\">proxy authentication guide<\/a> covers user\/password and IP-whitelist choices.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Rotate between tasks, not inside a login flow<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Playwright does not choose a new mobile IP by itself. It sends browser traffic to the endpoint you configured. The endpoint may be static, or your proxy platform may change its upstream IP when you request rotation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a mobile workflow, use this sequence:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Create a context for the dongle and complete one coherent task.<\/li>\n\n\n<li>Close the context so its pages and connections are finished.<\/li>\n\n\n<li>Invoke the dongle&#8217;s on-demand rotation link or the rotation API.<\/li>\n\n\n<li>Wait for the rotation request to report success according to the proxy platform.<\/li>\n\n\n<li>Create a fresh context with the same proxy endpoint and run the next task.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Keep a login, checkout, multi-page form, or other stateful flow in one context. Rotating halfway through can change the network identity while the same cookies and session are still active. For independent jobs, a new context after each completed task is a clean boundary.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the structure in Node.js. The URL is a placeholder for the rotation link assigned to your dongle; store it as a secret and use the request method documented for your endpoint.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>async function rotateAndCreateContext(browser, proxy, rotationUrl) {\n  const response = await fetch(rotationUrl);\n  if (!response.ok) {\n    throw new Error(`Rotation request failed: ${response.status}`);\n  }\n\n  return browser.newContext({ proxy });\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you use ProxyKite, start with the <a href=\"https:\/\/proxykite.com\/docs\/api\/rotation\">rotation API documentation<\/a> and <a href=\"https:\/\/proxykite.com\/blog\/how-4g-ip-rotation-works\/\">How a 4G Rotating Proxy Changes IPs<\/a>. It supports on-demand rotation and timer-based policies from 60 seconds to 7 days, with a sticky option. The exact route and credentials should come from your panel or API configuration, not from a hard-coded example.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Verify the route before running a real job<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Test the proxy outside Playwright first. This separates a bad endpoint or credential from a browser configuration problem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For an authenticated HTTP proxy:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl --proxy \"http:\/\/HOST:HTTP_PORT\" \\\n  --proxy-user \"USERNAME:PASSWORD\" \\\n  https:\/\/api.ipify.org<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For a SOCKS5 route where your proxy supports the chosen authentication method:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl --proxy \"socks5h:\/\/HOST:SOCKS5_PORT\" \\\n  --proxy-user \"USERNAME:PASSWORD\" \\\n  https:\/\/api.ipify.org<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then make the same check in Playwright:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const page = await context.newPage();\nawait page.goto('https:\/\/api.ipify.org', { waitUntil: 'domcontentloaded' });\nconsole.log(await page.textContent('body'));<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output should be the exit address returned by the proxy route, not the address you would see when connecting directly. Treat that value as a connectivity check only. It is not a guarantee about how a target website will classify or respond to the address.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting Playwright proxy errors<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><code>407 Proxy Authentication Required<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The proxy received the request but did not accept the credentials. Check that the username and password are passed as separate fields, that the endpoint is the HTTP port, and that shell or environment-variable quoting has not changed a special character. Test the same record with <code>curl --proxy-user<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>ERR_PROXY_CONNECTION_FAILED<\/code> or a timeout<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check the host and port, then test from the same machine that runs Playwright. Confirm that the box hosting your dongles has outbound internet access and that the dongle is online. If the endpoint is reachable with <code>curl<\/code> but not with Playwright, reduce the first navigation to <code>https:\/\/example.com<\/code>, use <code>waitUntil: 'domcontentloaded'<\/code>, and inspect the browser and Playwright versions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SOCKS5 works in curl but not in Playwright<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check the scheme exactly: <code>socks5:\/\/<\/code>, not an HTTP URL with a SOCKS5 port. Next, remove credentials from the Playwright object for a route that uses IP allowlisting, or switch to the authenticated HTTP endpoint. Playwright&#8217;s proxy credentials are not a universal SOCKS5-authentication adapter.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The IP changes during a workflow<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Look for a timer or on-demand rotation policy that is shorter than the task. Use a sticky option where available, keep the whole workflow in one context, and only request a new rotation after the context is closed. If the task needs a stable route for days, review the timer and session design rather than trying to repair cookies after an IP change.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Several pages use the same dongle unexpectedly<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check where the proxy is configured. Pages in one browser context share that context&#8217;s route. Create separate contexts with separate proxy objects, and do not call <code>browser.new_page()<\/code> for jobs that need distinct routes without first creating the intended context.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A safe production pattern<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For a small Playwright proxy pool, keep three pieces of data together: a route record, a task record, and a context lifetime. A route record contains the endpoint and secret references; a task record says what the browser must do; the context begins when the task starts and ends when it finishes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use a browser-level proxy for a single-route test suite. For multiple Huawei E3372 HiLink dongles on a Raspberry Pi or Linux box, launch one browser and assign one proxy context per dongle. Add bandwidth limits, website allow\/block rules, and alerts at the proxy layer so an automation bug cannot quietly consume the entire SIM data plan.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are building beyond a few dongles, ProxyKite also includes sub-users, white-label controls, REST API access, webhooks, Telegram alerts, and exports. Fleets of 50 or more dongles can request volume pricing through <a href=\"https:\/\/proxykite.com\/contact\">ProxyKite contact<\/a>. The <a href=\"https:\/\/proxykite.com\/docs\/guide\/getting-started\">getting started guide<\/a> covers the box and dongle setup before you connect Playwright.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Can Playwright use a proxy with username and password?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Pass the proxy server, username, and password as separate fields in the browser launch or browser-context configuration. The documented credential path is clearest for HTTP(S) proxies; keep the values in environment variables rather than source control.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use a different proxy for each Playwright page?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not directly. Proxy configuration belongs to the browser or browser context, so create one context per route and put the page inside the correct context. Multiple pages created in the same context share that context&#8217;s proxy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does Playwright rotate a proxy automatically?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Playwright sends traffic through the configured endpoint. To rotate a mobile IP, call the proxy platform&#8217;s rotation mechanism, close the old context, and create a new context for the next task.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does Playwright support SOCKS5 proxies?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, use a <code>socks5:\/\/HOST:PORT<\/code> server value. Test authentication separately because Playwright&#8217;s documented username\/password fields target HTTP(S) proxy authentication; an authenticated HTTP endpoint or IP allowlist may be the more reliable choice for a SOCKS5-capable setup.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How much does ProxyKite cost for Playwright?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The ProxyKite per-dongle licence is $9 per dongle per month, with no per-GB charge. It is software and cloud routing for hardware and SIMs you own; taxes are added at checkout, and the service is billed monthly by Paddle.com.<\/p>\n\n\n\n<aside class=\"ap-cta\" aria-label=\"Put each dongle to work\"><div class=\"ap-cta__content\"><p class=\"ap-cta__eyebrow\">Build your pool<\/p><p class=\"ap-cta__title\">Put each dongle to work<\/p><p class=\"ap-cta__text\">Use your own 4G dongles with Playwright-ready HTTP and SOCKS5 routing.<\/p><\/div><a class=\"ap-cta__btn\" href=\"https:\/\/proxykite.com\/contact\">Contact us<\/a><\/aside>\n\n\n\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Can Playwright use a proxy with username and password?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes. Pass the proxy server, username, and password as separate fields in the browser launch or browser-context configuration. The documented credential path is clearest for HTTP(S) proxies; keep the values in environment variables rather than source control.\"}}, {\"@type\": \"Question\", \"name\": \"Can I use a different proxy for each Playwright page?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Not directly. Proxy configuration belongs to the browser or browser context, so create one context per route and put the page inside the correct context. Multiple pages created in the same context share that context's proxy.\"}}, {\"@type\": \"Question\", \"name\": \"Does Playwright rotate a proxy automatically?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. Playwright sends traffic through the configured endpoint. To rotate a mobile IP, call the proxy platform's rotation mechanism, close the old context, and create a new context for the next task.\"}}, {\"@type\": \"Question\", \"name\": \"Does Playwright support SOCKS5 proxies?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes, use a socks5:\/\/HOST:PORT server value. Test authentication separately because Playwright's documented username\/password fields target HTTP(S) proxy authentication; an authenticated HTTP endpoint or IP allowlist may be the more reliable choice for a SOCKS5-capable setup.\"}}, {\"@type\": \"Question\", \"name\": \"How much does ProxyKite cost for Playwright?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The ProxyKite per-dongle licence is $9 per dongle per month, with no per-GB charge. It is software and cloud routing for hardware and SIMs you own; taxes are added at checkout, and the service is billed monthly by Paddle.com.\"}}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"Set up a Playwright proxy in Node.js or Python with HTTP\/SOCKS5, authentication, per-context routing, rotation, and practical fixes for browser automation.","protected":false},"author":1,"featured_media":365,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[5],"tags":[171,84,30,252,135],"class_list":["post-364","post","type-post","status-publish","format-standard","has-post-thumbnail","category-use-cases","tag-browser-automation","tag-http-proxy","tag-ip-rotation","tag-playwright-proxy","tag-socks5","cs-entry"],"_links":{"self":[{"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":1,"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":647,"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/posts\/364\/revisions\/647"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/media\/365"}],"wp:attachment":[{"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/proxykite.com\/blog\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}