{
  "id": 15778899,
  "title": "One Browser per Country: Running Several VPN Locations Simultaneously",
  "url": "https://urgent.news/2026/10/20/one-browser-per-country-running-several-vpn-locations-simultaneously",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-20T18:07:19.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/arunmk95/one-browser-per-country-running-several-vpn-locations-simultaneously-363i"
  },
  "original_language": "en",
  "account": "Introduction\nThere are circumstances where using a VPN can be beneficial, such as comparing prices or viewing local products from different countries. However, if a computer network-wide VPN is employed, it can disrupt ongoing work by switching the country for all processes on the computer. Most common VPN applications provide network-wide functionality, which is not desirable in this situation.\n\nScenario\nLet's consider an abstract scenario where one wants to have three browser windows open simultaneously, each in a different country: Poland, Germany, and the Netherlands. Currently, normal browser applications are tied to a single home connection and cannot support this requirement.\n\nSolution\nA potential solution involves creating a small router using Docker, which can be set up with multiple VPNs. This approach would involve building a series of sandboxes, each representing a VPN connection to a specific country. Each sandbox would have its own local proxy port. A browser, command-line tool, or any other application can then utilize a sandbox by pointing it at the corresponding port. With this setup, it is possible to run multiple countries in parallel on a single laptop.\n\nDesign\nThe proposed design consists of the following components:\n1. One container: Each container runs a Gluetun program, which connects to a VPN provider and offers proxies to other programs.\n2. One proxy: Each sandbox includes an HTTP proxy port and a SOCKS5 proxy port.\n3. One browser profile: Each browser instance has its own profile, containing cookies, history, logins, and settings. Multiple profiles do not share data.\n4. One browser instance: Each running copy of a browser application is considered a separate instance. Each instance has its own profile and proxy.\n\nTraffic Flow\nWhen a request is made, the traffic follows a specific path, moving through the proxy and passing through the VPN server. The IP address seen by the website will be the VPN server's address, not the user's home address.\n\nProblems and Limitations\nSeveral challenges can arise in this setup:\n1. Dead server: If a VPN server goes offline, it may disrupt the connection for the corresponding country.\n2. Rate limits: Some VPN providers impose rate limits on the number of simultaneous connections, which could affect the performance of the setup.\n3. Shared IP addresses: If multiple users share the same VPN server location, the IP address may not be unique to the user.\n4. Incorrect country assignment: In some cases, the DNS server may provide an incorrect country assignment for the IP address, leading to inaccurate geolocation data.\n\nConclusion\nWhile running multiple VPN connections simultaneously on a single computer can be achieved through a custom setup using Docker, Gluetun, and multiple browser profiles, there are several limitations and challenges to consider. The proposed solution provides a flexible and isolated environment for browsing from different countries, but users should be aware of the potential issues and monitor the performance of their setup. The complete code for this implementation can be found on GitHub.",
  "summary": "Introduction There is always a case where I would like to use a VPN in order to browse some sites from other countries: it could be because I am comparing prices, looking at local products and other reasons. However, I do have numerous other tabs currently open and with work in progress. These would get disrupted if a computer network-wide VPN is used which switches the country for all processes…",
  "key_points": [
    "Three browser windows open simultaneously in Poland, Germany, and Netherlands",
    "Docker container runs Gluetun program for each VPN connection",
    "Each browser instance has its own profile, proxy, and sandbox"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}