A free, open-source virtual gamepad that runs in the phone's browser.
Scan a QR code on the TV, and up to eight phones become gamepads for couch co-op on Windows and Linux, next to the controllers already plugged into your PC.
No app store, no accounts, no certificates to install: it opens as a trusted HTTPS page you can add to your home screen.
Quick start · Features · Install as an app · Eight players · Controls · How it works · Troubleshooting
Click the preview to watch the full video (demo.mp4).
Four friends on the couch, one gamepad in the drawer. Everybody has a phone.
Open Web Controller turns those phones into gamepads. Your PC runs a small server and shows a lobby with a QR code. Each player scans it, a controller opens in their browser, and the game sees a standard gamepad for every player. Nobody installs an app, creates an account or pairs anything over Bluetooth.
And nobody taps through a "your connection is not private" warning. The QR code opens a properly trusted https:// address, so adding the controller to the home screen, keeping the screen awake and gyro aim work on the first try. How that works.
- For game night: hand out controllers by pointing at the TV.
- For the spare-controller problem: your phone is the second, third and fourth pad.
- For a full room: up to eight phones, mixed with the controllers you already own.
- For tinkerers: a small Flask + Socket.IO codebase with a documented protocol, a driver-free demo mode and an MIT license.
| Scan and play The lobby on your TV shows a QR code. Scan it and the controller opens in the browser. No app store, no pairing. |
Up to 8 players Each phone takes a player slot with its own colour. The lobby lights up as people join and press buttons. |
Installable, zero certificates Phones open a trusted HTTPS link. No warnings, no CA to install. Add it to the home screen and it behaves like a native app. |
| Full layout Dual analog sticks, D-pad, A/B/X/Y, LB/RB, analog LT/RT, L3/R3, Menu, View and Guide. Multi-touch throughout. |
Rumble on your phone Force feedback from the game is forwarded to the phone, which vibrates in your hands (Windows host, Android phones). |
Gyro aim Tilt the phone to move the right stick for fine aiming, on top of the touch sticks. |
| Low latency on your LAN Inputs travel over a WebSocket (Socket.IO) straight to your PC. A live badge shows your connection's round-trip time. |
Real gamepads, next to yours Games see Xbox 360 pads (XInput) through ViGEmBus on Windows and uinput on Linux. Phones join after the controllers plugged into the PC, and switch to PlayStation-style pads when Windows runs out of Xbox slots. |
Windows, Linux and a demo mode ViGEm on Windows, uinput on Linux, and a driver-free demo backend that runs anywhere for testing and UI work. |
| Effortless start One command or one double-click. The server opens the lobby, prints a QR code in the terminal and picks a free port by itself. |
Stays on your Wi-Fi Inputs go from the phone straight to your PC. No accounts, no telemetry, no cloud relay in between. |
Make it yours Left-handed mode, button size, stick dead zone and sensitivity, three themes. MIT licensed, so you can go further. |
![]() The controller in landscape, lit in your player colour |
|
![]() The lobby for your TV: scan to join, watch players light up |
|
![]() Portrait works too |
![]() Settings on the phone ![]() The setup page: install help for every phone |
Three steps: run it, scan the QR, play.
Pick whichever is easiest for you. Each one starts the server, opens the lobby in your browser and prints a QR code in the terminal.
Windows: download the .exe (easiest)
- Download
OpenWebController.exefrom the Releases page. It is attached to every tagged release. Nothing there yet? Use the launcher below. - Double-click it. Allow it through Windows Firewall on Private networks when asked.
Windows SmartScreen may say "Windows protected your PC" because the file is not code-signed. Click More info → Run anyway.
Install the ViGEmBus driver once so games can see the controllers. Without it Open Web Controller still starts, in demo mode, and tells you what is missing.
Windows or Linux: one-click launcher (from a clone or source zip)
The launchers create a virtual environment, install the dependencies, start the server and open the lobby. You only need Python 3.9+.
Get the code with git, or download the ZIP and unpack it:
git clone https://github.com/ToTt0G/open-web-controller.git
cd open-web-controller| System | Do this |
|---|---|
| Windows | Double-click scripts\start-windows.bat |
| Linux | ./scripts/start.sh |
Later starts skip the install and launch right away. Extra options pass straight through, for example ./scripts/start.sh --port 5050.
Windows needs the ViGEmBus driver for real gamepads. Linux needs the evdev module and access to /dev/uinput, see Linux setup. The launcher tries to build evdev for you. If that fails, or /dev/uinput is not set up, it starts in demo mode and prints the fix.
pipx or uvx: no clone needed
pipx install git+https://github.com/ToTt0G/open-web-controller
owcOr run it once without installing, using uv:
uvx --from git+https://github.com/ToTt0G/open-web-controller owcLinux: real gamepads need the optional evdev module (the linux extra). It is compiled during install, so get the build tools first:
sudo apt install gcc python3-dev linux-libc-dev # Fedora: sudo dnf install gcc python3-devel kernel-headers
pipx install "open-web-controller[linux] @ git+https://github.com/ToTt0G/open-web-controller"With uvx the same thing is uvx --from "open-web-controller[linux] @ git+https://github.com/ToTt0G/open-web-controller" owc. Without evdev it runs in demo mode and says so. Adding it later, or installing it without a compiler, is covered in Linux setup.
Manual: pip and python
git clone https://github.com/ToTt0G/open-web-controller.git
cd open-web-controller
python -m venv .venv
# Windows: .venv\Scripts\activate Linux: source .venv/bin/activate
pip install -r requirements.txt
python app.pyOn Linux, real gamepads also need pip install evdev in that same virtual environment. It is compiled, see Linux setup.
The lobby opens on your PC. Put it on the TV, then scan the Join QR code with each phone's camera. Phones and PC must be on the same Wi-Fi.
The QR points at a trusted address like https://192-168-1-42.local-ip.sh:5000, so the controller opens straight away with no certificate warning. If it does not load on your network, use the "Not loading?" fallback link under the QR code. It is plain http:// and works everywhere.
Each phone is assigned the next free player slot (1 to 8) and shows up in the lobby. Start your game. It sees one gamepad per player: Xbox 360 pads first, and with more than four controllers on Windows the rest are PlayStation-style. See Mixing PC controllers and phones.
Stop the server with Ctrl+C. The virtual controllers are unplugged cleanly.
Command-line options and environment variables
python app.py [--host 0.0.0.0] [--port 5000] [--backend auto|vigem|uinput|demo]
[--max-players N] [--pad-type auto|xbox|ds4] [--pc-controllers N]
[--tls auto|trusted|http|selfsigned|custom] [--cert PATH --key PATH]
[--no-https] [--open | --no-open] [--no-qr] [-v] [--version]
| Option | Default | What it does |
|---|---|---|
--host |
0.0.0.0 |
Address to listen on. The default accepts connections from your whole network. |
--port |
5000 |
Port to listen on. If it is busy, the next free port is used and printed. |
--backend |
auto |
vigem (Windows), uinput (Linux), demo (no driver), or auto to pick the right one. |
--max-players |
8 |
How many phone slots there are, from 1 to 8. |
--pad-type |
auto |
Windows only. auto gives Xbox 360 pads while Windows has a free Xbox slot and PlayStation-style pads after that. xbox or ds4 forces one kind for every phone. See Mixing PC controllers and phones. |
--pc-controllers |
detected | How many controllers are plugged into the PC (0 to 8), for the lobby and the player numbers. Set it only if the detected number is wrong. |
--tls |
auto |
How phones connect. auto uses trusted zero-certificate HTTPS and falls back to HTTP. See connection modes. |
--cert, --key |
none | Your own certificate and key files, for --tls custom. |
--no-https |
off | Shorthand for --tls http. |
--open, --no-open |
open when started from a terminal | Open the lobby in the browser at startup, or don't. |
--no-qr |
off | Don't print the QR code in the terminal. |
-v, --verbose |
off | More console output. The demo backend then logs every button change. |
--version |
Print the version and exit. |
| Environment variable | Same as |
|---|---|
OWC_BACKEND |
--backend |
OWC_PORT |
--port |
OWC_HOST |
--host |
OWC_MAX_PLAYERS |
--max-players |
OWC_PAD_TYPE |
--pad-type |
OWC_PC_CONTROLLERS |
--pc-controllers |
OWC_TLS |
--tls |
OWC_CERT, OWC_KEY |
--cert, --key |
| Environment variable | What it does |
|---|---|
OWC_PUBLIC_HOST |
Name put in the QR code with --tls custom, for example a Tailscale name. |
OWC_PUBLIC_IP |
Use this address instead of the detected LAN address. |
OWC_HOME |
Folder for certificates and first-run markers. |
The same options work with every way of starting it: owc --port 5050, OpenWebController.exe --backend demo, ./scripts/start.sh --no-open.
Useful URLs once it is running:
| URL | What it is |
|---|---|
/ |
The controller (what phones open) |
/lobby |
The TV screen with QR codes and live player cards |
/setup |
Install help and certificate options for phones |
/status |
JSON: version, backend, connection mode, connected players, pad types and PC controllers |
Backends: which one am I running?
| Backend | System | What games see | Needs |
|---|---|---|---|
vigem |
Windows 10/11 | A real Xbox 360 controller (XInput) per phone, or a DualShock 4 once the four Xbox slots are taken. Rumble is sent back to the phone | ViGEmBus driver |
uinput |
Linux | An Xbox 360-style gamepad per phone, up to eight, created through /dev/uinput (no rumble yet) |
The evdev module and permission to write /dev/uinput (setup) |
demo |
Anywhere, including macOS | Nothing. Inputs are shown in the lobby, and button changes are logged with -v |
Nothing |
auto picks vigem on Windows and uinput on Linux. If the driver (or evdev on Linux) is missing it falls back to demo and prints how to fix it, so the app always starts. The active backend is shown in the startup banner and at /status.
Linux setup: /dev/uinput
Virtual gamepads on Linux need two things: the evdev Python module and write access to /dev/uinput. If either is missing, Open Web Controller starts in demo mode and says which.
The evdev module. It is optional and has to be compiled, so install the build tools first (sudo apt install gcc python3-dev linux-libc-dev, on Fedora sudo dnf install gcc python3-devel kernel-headers). Then install it into the Python that runs Open Web Controller. A bare pip install evdev usually hits the wrong one.
| You start it with | Install evdev with |
|---|---|
The launcher, or a manual .venv |
.venv/bin/python -m pip install evdev |
| pipx | pipx inject open-web-controller evdev |
No compiler? Use your distro's package instead: sudo apt install python3-evdev, then delete .venv and create it again with python3 -m venv --system-site-packages .venv. With pipx, reinstall with pipx install --force --system-site-packages git+https://github.com/ToTt0G/open-web-controller.
Access to /dev/uinput. Do this once:
# 1. Load the uinput module now, and on every boot
sudo modprobe uinput
echo uinput | sudo tee /etc/modules-load.d/uinput.conf
# 2. Let the "input" group use it
echo 'KERNEL=="uinput", SUBSYSTEM=="misc", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput"' \
| sudo tee /etc/udev/rules.d/99-open-web-controller.rules
sudo udevadm control --reload-rules && sudo udevadm trigger
# 3. Add yourself to that group, then log out and back in
sudo usermod -aG input $USERStart Open Web Controller again. The banner should say Gamepad backend: uinput.
Phones join next to the controllers already plugged into your PC. There is nothing to set up: the server counts the real controllers, the lobby shows them first as "PC" tiles, and phones are numbered after them. With three controllers on the PC, the first phone is usually player 4.
On Windows the server counts Xbox-type (XInput) controllers, because those are the ones that take up Xbox slots. If the lobby shows the wrong number, set it with --pc-controllers N (0 to 8).
The player number on a phone and in the lobby comes from the server and stays the same while the phone is on that slot, even if a PC controller is switched off or plugged in. On Windows, a phone with an Xbox pad shows the number Windows gave that pad, which is the order games that use Xbox controllers see. For PlayStation-style pads, and on Linux, the number is a best guess: games may count them in a different order.
Up to eight phones can join. What each one becomes depends on the system:
| System | What each phone becomes |
|---|---|
| Windows | An Xbox 360 pad while Windows has a free Xbox slot, a PlayStation-style (DualShock 4) pad after that |
| Linux | An Xbox-style pad, all eight of them. No cap |
Why the switch on Windows? Windows' Xbox controller API (XInput) only sees four controllers in total, and the ones plugged into the PC count. A fifth Xbox pad would be invisible to most games. So when the four Xbox slots are full, the next phone becomes a virtual DualShock 4 instead, which games reach through other APIs that have no such limit. This is decided automatically when a phone joins, and the lobby marks those players with a small "PS".
Example: three Xbox controllers on the PC, then three phones join.
| Player | Who | The game sees |
|---|---|---|
| 1 to 3 | Xbox controllers on the PC | Xbox pads |
| 4 | Phone 1 | Xbox 360 pad, the last Xbox slot |
| 5 | Phone 2 | PlayStation-style pad |
| 6 | Phone 3 | PlayStation-style pad |
All six work in Steam and SDL-based games. A game that only speaks XInput sees players 1 to 4.
The controller on the phone looks the same either way. On a PlayStation-style pad A/B/X/Y act as Cross/Circle/Square/Triangle, LB/RB as L1/R1, LT/RT as L2/R2, View as Share, Menu as Options and Guide as the PS button.
To change the defaults, use --max-players and --pad-type, listed under command-line options.
| Where you play | Controllers it sees |
|---|---|
| Steam | All of them, once PlayStation support is on (see below) |
| SDL-based games and most emulators | All of them |
| Older Xbox-only (XInput) games on Windows | Four in total, counting the controllers on the PC |
| Linux | All of them. Every phone is an Xbox-style pad |
- Steam: open Steam → Settings → Controller and turn on Steam Input for PlayStation controllers (the exact label varies between Steam versions). Steam then picks up the PlayStation-style pads like any other controller.
- How many players a game accepts is up to the game. Open Web Controller can hand it eight controllers. A game written for four still stops at four.
- Party games with 8-player local modes, Pico Park for example, may work through Steam Input. That is not confirmed for any single game, so try it before game night.
- Xbox-only game and more than four people? The first four controllers play. Two phones can share a slot to take turns on the same pad.
flowchart LR
P["Phones<br/>browser or installed PWA<br/>up to 8 players"]
S["Open Web Controller<br/>Flask + Socket.IO server<br/>on your PC"]
B{"Backend"}
V["ViGEmBus<br/>Windows"]
U["uinput<br/>Linux"]
D["demo<br/>no driver"]
G["Your game<br/>sees one gamepad per player"]
L["Lobby on the TV<br/>QR code + live players"]
P -- "inputs over Wi-Fi<br/>(Socket.IO WebSocket)" --> S
S -. "rumble" .-> P
S --> B
B --> V --> G
B --> U --> G
B --> D
S -- "who is playing" --> L
- The server runs on your PC and serves three pages: the controller, the lobby and the setup guide.
- A phone opens the controller page and connects with Socket.IO. The server assigns it a player slot and plugs in a virtual gamepad for that slot.
- Every touch becomes a small message (
button,stickortrigger). The server validates it and applies it to the virtual gamepad. - The game reads that gamepad like any wired controller. When the game rumbles the pad, the server sends that back to the phone.
Inputs go straight from phone to PC and never leave your network. The full message format is in docs/protocol.md if you want to build your own client.
| On the phone | Xbox input | Notes |
|---|---|---|
| Left stick | Left analog stick | Touch and drag anywhere in the stick area |
| Right stick | Right analog stick | Gyro aim adds to it when enabled |
| L3, R3 | Stick clicks | Dedicated buttons, or double-tap and hold a stick |
| D-pad ▲ ▼ ◀ ▶ | D-pad | Diagonals work |
| A, B, X, Y | A, B, X, Y | Xbox diamond layout and colours |
| LB, RB | Left and right bumper | |
| LT, RT | Left and right trigger | Analog: press for full power, slide down to ease off |
| Menu | Start | |
| View | Back | "Select" on older pads |
| Guide (centre ring) | Xbox Guide button | |
| Tilt the phone | Right stick | Optional gyro aim, turn it on in settings |
Press as many buttons at once as you have fingers. The settings sheet on the phone lets you:
- pick your player slot (1 to 8)
- choose whether the stick or the D-pad sits under your left thumb, or flip the whole pad for left-handed play
- resize the buttons and tune stick dead zone and sensitivity
- turn on gyro aim, re-centre it and flip its axes
- set vibration strength, theme (dark, black or light), the latency badge and keep-screen-awake
Testing from a desktop browser with a keyboard
Open the controller URL on your PC to try things without a phone. Combine it with --backend demo to develop without any driver.
| Keys | Xbox input |
|---|---|
| W A S D | Left stick |
| T F G H | Right stick |
| ↑ ← ↓ → | D-pad |
| K L J I | A, B, X, Y |
| Q E | LB, RB |
| 1 3 (or Z C) | LT, RT |
| V N | L3, R3 |
| Enter | Start (Menu) |
| Backspace | Back (View) |
| Home (or `) | Guide |
The same list is at the bottom of the settings sheet.
Browsers only unlock the good stuff on secure (https://) pages: installing a web app, service workers, keeping the screen awake, motion sensors for gyro aim. On a home network that normally means a self-signed certificate and a scary warning on every phone.
Open Web Controller skips all of that. Scan, and it is already trusted.
- Your phone opens
https://192-168-1-42.local-ip.sh:5000instead of a bare IP address. - That name simply resolves back to your PC's local address (
192.168.1.42), and the server presents a real, publicly trusted certificate for it. - The browser shows a normal padlock. Add to Home Screen, wake lock and gyro just work, on iPhone and Android.
This is made possible by local-ip.sh, a free service that provides wildcard DNS for private IP addresses together with a publicly trusted Let's Encrypt certificate for *.local-ip.sh. Thank you to its maintainers. Open Web Controller downloads that certificate at startup and caches it, so later starts work without internet.
Android (Chrome)
- Scan the Join QR code.
- Tap the Install prompt, or menu (⋮) → Add to Home screen.
- Launch it from the home screen for fullscreen.
iPhone and iPad (Safari)
- Scan the Join QR code and open it in Safari.
- Tap Share → Add to Home Screen.
- Launch it from the home screen.
The installed app opens fullscreen, keeps the screen awake while you play, loads from cache, and shows a friendly offline page with a retry button if the PC is not reachable. If your PC's IP address changes, scan the QR code again.
Some routers block DNS answers that point at private addresses ("DNS rebinding protection"), and the trusted name needs a working DNS lookup. Open Web Controller checks this at startup and adapts:
| Connection mode | Address phones open | When it is used | What works |
|---|---|---|---|
| Trusted (default) | https://192-168-1-42.local-ip.sh:5000 |
Whenever the name resolves on your network | Everything |
| HTTP fallback | http://192.168.1.42:5001 |
Always there as the "Not loading?" link in the lobby (one port above the main one). If the trusted name does not resolve at startup, the main QR code switches to plain HTTP by itself | All controls, rumble and the lobby. No app install on Android, no gyro, and wake lock is best effort |
To fix it properly, see DNS rebinding protection in Troubleshooting.
The local-ip.sh certificate is shared and public. It is there so your phone can install the controller like a real app, not for privacy.
Advanced: other connection modes and your own certificate
You don't need any of this to play. Choose the connection mode with --tls:
--tls |
What it does |
|---|---|
auto |
Default. Trusted mode when it works, HTTP otherwise. |
trusted |
The local-ip.sh certificate and address. Falls back to HTTP with a note if they can't be used. |
http |
Plain HTTP only. --no-https is the same thing. |
selfsigned |
Generate a certificate on your PC (stored in certs/). Uses mkcert when it is installed, otherwise a self-signed certificate that phones warn about once. |
custom |
Use your own files: --tls custom --cert PATH --key PATH. |
Use this if the trusted link is blocked on your network and you still want the installable app. mkcert creates a certificate authority on your PC that you then install on each phone.
1. Install mkcert on the PC
# Windows
winget install --id FiloSottile.mkcert
# restart your terminal, then:
mkcert -install# Linux (Debian/Ubuntu shown, use your distro's package manager)
sudo apt install mkcert libnss3-tools
mkcert -installOn Windows, choco install mkcert and scoop install mkcert work too.
2. Start with --tls selfsigned
python app.py --tls selfsignedOpen Web Controller detects mkcert and generates a certificate for your PC's current IP address. If you ran this mode before installing mkcert, delete cert.pem and key.pem in the certs folder first so a new one is issued. That folder sits in the project directory, next to the .exe, or in ~/.open-web-controller for pipx installs.
Prefer to generate the certificate by hand?
cd certs
# Delete old self-signed certs
Remove-Item cert.pem, key.pem -ErrorAction SilentlyContinue
# Generate new certs (replace the IP with your PC's)
mkcert 192.168.x.x localhost 127.0.0.1
# Rename to the filenames the server expects
Rename-Item "192.168.x.x+2.pem" "cert.pem"
Rename-Item "192.168.x.x+2-key.pem" "key.pem"
cd ..3. Trust it on each phone
In this mode the lobby shows a second QR code for connection help. Scan it to open the setup page (/setup), download the certificate there, then:
iPhone and iPad
- Tap the download button. You see "Profile Downloaded".
- Open Settings → General → VPN & Device Management and install the profile.
- Open Settings → General → About → Certificate Trust Settings and turn on full trust for the mkcert certificate.
Android
- Tap the download button. The file
rootCA.pemlands in Downloads. - Open Settings → Security → Encryption & credentials → Install a certificate → CA certificate. The path varies a little between phone makers; searching settings for "CA certificate" finds it.
- Pick
rootCA.pemfrom Downloads and confirm.
Don't share the rootCA-key.pem file that mkcert keeps on your PC.
If your PC and phones are on the same tailnet, Tailscale can issue a real certificate for your machine's ts.net name:
tailscale cert my-pc.tailnet-name.ts.net
OWC_PUBLIC_HOST=my-pc.tailnet-name.ts.net \
python app.py --tls custom --cert my-pc.tailnet-name.ts.net.crt --key my-pc.tailnet-name.ts.net.keyOWC_PUBLIC_HOST sets the name used in the QR code, so phones open https://my-pc.tailnet-name.ts.net:5000.
python app.py --tls custom --cert /path/to/fullchain.pem --key /path/to/privkey.pemThe certificate has to match the name or IP address the phones use to reach your PC. Set OWC_PUBLIC_HOST to that name so the QR code points at it.
My phone can't open the page / it loads forever
Work through these in order:
-
Same network. The phone must be on the same Wi-Fi as the PC, not on mobile data and not on a guest network. Guest networks and some mesh routers isolate clients from each other ("AP isolation" or "client isolation"). Turn that off or use the main network.
-
Windows Firewall. Windows blocks incoming connections by default. When the firewall prompt appears on first start, allow Private networks. If you dismissed it, run this once in an administrator terminal. It opens the main port and the fallback port above it (the server prints the command with your ports on first start):
netsh advfirewall firewall add rule name="Open Web Controller" dir=in action=allow protocol=TCP localport=5000,5001 profile=private
Also check that your Wi-Fi is set to Private in Windows network settings, not Public.
-
Linux firewall. Open both ports. With ufw:
sudo ufw allow 5000:5001/tcp. With firewalld:sudo firewall-cmd --add-port=5000-5001/tcp(add--permanentand reload to keep it after a reboot). -
Try the fallback link. The lobby shows a "Not loading?" link under the QR code. If that one works and the main one does not, your router is blocking the trusted address. See DNS rebinding protection below.
-
Right address and port. Use the URL from the lobby or the terminal. If port 5000 or 5001 was busy the server picked another pair, and the firewall rule has to match it.
-
VPN and private DNS. A VPN on the PC or the phone often breaks local connections. Pause it.
DNS rebinding protection: the https link doesn't load, the http one does
The trusted address (https://192-168-1-42.local-ip.sh:5000) depends on a public DNS name that answers with your PC's private IP address. Some routers throw such answers away to protect against DNS rebinding attacks. Fritz!Box, OpenWrt, pfSense and OPNsense do this out of the box. Open Web Controller notices at startup and switches the QR code to plain HTTP, so you can always play. To get the trusted link (and with it home-screen install, wake lock and gyro) pick one:
- Allow the domain. Add
local-ip.shto your router's DNS rebind exceptions. Examples: Fritz!Box → Home Network → Network → Network Settings → DNS Rebind Protection; dnsmasq/OpenWrt →rebind-domain-ok=/local-ip.sh/; Unbound/pfSense/OPNsense →private-domain: "local-ip.sh". - Use a public DNS resolver such as
1.1.1.1or8.8.8.8on the PC and the phones instead of the router's. Restart Open Web Controller afterwards. - Use your own certificate with
--tls selfsignedor--tls custom, see Advanced.
The phone also needs internet access for that DNS lookup. On a network with no internet at all, use the HTTP link.
"Your connection is not private" / certificate warning
You should not see this in the default mode. It appears with --tls selfsigned when the phone does not trust your PC's certificate yet: tap Advanced → Proceed (Chrome) or Show Details → visit this website (Safari), or install the mkcert certificate authority as described under Advanced. If a mkcert setup that used to work starts warning again, your PC's IP address probably changed. Restart the server so it issues a certificate for the new address.
Windows: "ViGEmBus not found" or the app says demo mode
The Windows backend needs the ViGEmBus driver. Install it from the ViGEmBus releases page, then start Open Web Controller again. If it is installed and controllers still fail to connect, restart the ViGEmBus service or reboot the PC.
Linux: "python-evdev not installed" and the app says demo mode
The evdev module is missing from the Python that runs Open Web Controller. Install it with .venv/bin/python -m pip install evdev (launcher or manual install) or pipx inject open-web-controller evdev (pipx). Both compile it, which needs gcc and python3-dev. The no-compiler route is in Linux setup.
Linux: "cannot open /dev/uinput" / permission denied
Your user is not allowed to create input devices yet:
sudo modprobe uinput
echo 'KERNEL=="uinput", MODE="0660", GROUP="input"' | sudo tee /etc/udev/rules.d/99-open-web-controller.rules
sudo udevadm control --reload-rules && sudo udevadm trigger
sudo usermod -aG input $USERLog out and back in (group changes only apply to new sessions), then check with ls -l /dev/uinput that the group is input. Full steps are in Linux setup.
The game doesn't react to the controller
First find out whether the PC sees the pad at all:
- Windows: press
Win+R, runjoy.cpl. You should see one "Xbox 360 Controller" per connected player. PlayStation-style pads are listed as "Wireless Controller". - Linux: run
evtestand look for "Open Web Controller Pad". - Either: open https://hardwaretester.com/gamepad on the PC and press a button on the phone.
If the pad shows up there but not in the game:
- Steam games: open Steam → Settings → Controller and enable Steam Input for Xbox controllers, or right-click the game → Properties → Controller and set the override to "Enable Steam Input". If the game already has native Xbox support and inputs arrive doubled, set it to "Disable Steam Input" instead.
- Non-Steam games and emulators: select the Xbox 360 / XInput controller in the game's own input settings. Adding the game to Steam as a non-Steam game also lets Steam Input handle it.
- Start the server first. Some games only look for controllers at launch. Connect the phones, then start the game.
- Player order. On Windows, phones with Xbox pads show the number the game uses. For PlayStation-style pads and on Linux the number is a best guess; check the game's own controller list if it matters.
- Players 5 and up are missing. On Windows those are PlayStation-style pads, and games that only support Xbox controllers stop at four. See Game compatibility.
No vibration on my iPhone
iOS does not support the web Vibration API in any browser, so iPhones and iPads cannot vibrate from a web page. Everything else works.
On Android, haptic taps work everywhere and game rumble works when the PC runs the Windows backend. If you feel nothing, check that Vibration is on in the controller settings and that the phone is not in battery-saver mode or has touch vibration turned off system-wide.
Gyro aim does nothing
Motion sensors only work on secure pages, so join through the https:// QR code, not the HTTP fallback link. On iPhone you also have to grant the motion permission when the controller asks. If you denied it, close the tab and open the controller again.
Input feels laggy
The latency badge on the controller shows the round trip to your PC. If it is high or jumps around:
- Move closer to the router or use the 5 GHz band.
- Connect the PC by Ethernet cable. Wi-Fi on both ends doubles the airtime.
- Close downloads and streams on the same network, and turn off VPNs.
- Turn off battery saver on the phone. It throttles the browser.
The screen dims or locks while I play
Turn on Keep screen awake in the controller settings. It is most reliable when you join through the https:// QR code or install the controller as an app. On the HTTP fallback link it is best effort.
"Port 5000 is already in use"
The server picks the next free port by itself and prints the new URL. To choose one yourself: python app.py --port 5050 or set OWC_PORT=5050. The HTTP fallback link uses the port after it.
More than four players?
Yes, up to eight phones. Whether all of them show up in the game depends on the game:
- Steam, SDL-based games and most emulators see every controller. In Steam, turn on Steam Input for PlayStation controllers under Settings → Controller.
- Older Xbox-only (XInput) games on Windows see four controllers in total, and the ones plugged into the PC count. That limit is in Windows, not in Open Web Controller.
- Linux has no cap: all eight phones are Xbox-style pads.
On Windows, phones past the fourth Xbox slot become PlayStation-style pads automatically so they stay visible. Details and a worked example are in Mixing PC controllers and phones.
Several phones can also share a slot (handy for handing a turn to someone else), but they drive the same gamepad.
Still stuck? Open an issue and include the console output.
Ideas being considered, in no promised order. Votes and pull requests move things up.
- Custom layouts: move, resize and hide controls
- Button remapping and per-game profiles
- Rumble on Linux through uinput force feedback
- Gyro steering (tilt as left stick) for racing games
- Packaged builds for Linux (AppImage or Flatpak)
- macOS backend, if a workable virtual gamepad driver turns up
Planned but not started. Each has an issue under the backlog label, where you can vote or pick one up.
- Forward controllers paired to a phone or laptop: a Bluetooth pad connected to that device joins as a player through the browser Gamepad API
- Keyboard player: join from a laptop or tablet browser and play on its keyboard
- Keyboard and mouse output mode, for games without controller support. This is also the path to macOS
Have another idea? Request a feature.
Contributions are welcome, from typo fixes to new backends. You can work on the UI without any driver:
pip install -r requirements-dev.txt
python app.py --backend demo
pytest
ruff check .See CONTRIBUTING.md for the dev setup, project layout and how to re-render the promo video. Please read the Code of Conduct. Changes are tracked in the CHANGELOG.
Open Web Controller is made for couch gaming on your home Wi-Fi. Anyone on the same network who opens the link can join as a player, so don't run it on public Wi-Fi or expose its port to the internet. See SECURITY.md.
MIT © ToTt0G. Use it, change it, ship it.
Open Web Controller is not affiliated with or endorsed by Microsoft or Sony. Xbox is a trademark of Microsoft Corporation. PlayStation and DualShock are trademarks of Sony Interactive Entertainment Inc. Virtual controllers on Windows are provided by the ViGEmBus driver through vgamepad.
If this saved your couch co-op night, star the repo. It helps other people find it.
Scan. Sit. Play.





