Command-line options
Part of lemoGamePad ultimate.
Command-line options
lemoGamePad-server.exe # virtual Xbox 360 pad (best compatibility)
lemoGamePad-server.exe --pad ds4 # virtual DualShock 4 instead
lemoGamePad-server.exe --port 9999 # different control port (app setting must match)
lemoGamePad-server.exe --max-phones 8 # allow 1-8 phones at once (default 8)
lemoGamePad-server.exe --no-rumble # do not forward rumble to the phone
lemoGamePad-server.exe --no-video # disable the PC screen stream
lemoGamePad-server.exe --no-qr # do not print the pairing QR code
lemoGamePad-server.exe --wifi-qr # also print the active Wi-Fi join QR (contains the password)
lemoGamePad-server.exe --no-install-deps # hide dependency reminders (no install is automatic)
lemoGamePad-server.exe --no-web # disable the browser gamepad page
lemoGamePad-server.exe --web-port 8080 # browser pad TCP port (default: control port + 2)
lemoGamePad-server.exe --web-key mysecret # fixed browser pairing key (overrides the saved one)
lemoGamePad-server.exe --web-key-file lemoGamePad-web.key # use a different saved key file
lemoGamePad-server.exe --video-port 9990 # override the TCP stream port
lemoGamePad-server.exe --video-fps 60 # stream frame rate, capped at 60 (default 60)
lemoGamePad-server.exe --video-width 480 # balanced-profile width (default 480)
lemoGamePad-server.exe --video-quality 42 # JPEG quality 20-90 (default 42)
lemoGamePad-server.exe --list-ip # print this PC's LAN IPs and exit
lemoGamePad-server.exe --version # print semver and git commit, then exit
On Linux use ./rust/target/release/lemoGamePad-server with the same options
(or the built dist/lemoGamePad-server).
Desktop panel. lemoGamePad-app.exe and dist/lemoGamePad-app start the
same server with a GUI; pc/gui.sh is the source-checkout helper. The panel
accepts the common flags above
(--port, --pad, --max-phones, --no-rumble, --no-video, --no-web,
--web-port, --web-key, --web-key-file, --no-install-deps) as starting
values, plus:
lemoGamePad-app --manual-start # open the panel without starting the server
lemoGamePad-app --no-update-check # skip the GitHub release check on launch
Settings changed in the panel need Apply & Restart. The console receiver remains the choice for scripts and headless machines.
Browser pad. Unless --no-web is passed, the server also hosts a gamepad
page on TCP control port + 2 (default 9878). The console prints the full
URL, including the pairing key saved for reuse:
Web pad : http://192.168.1.20:9878/?k=AbCdEf12
The key is created in ~/lemoGamePad-web.key on first run and reused later;
--web-key pins a different one. The port must differ from the control port
and the screen-stream port. The pad is plain LAN HTTP/WS; the
Service Worker/offline Home Screen launch requires HTTPS and is therefore not
available in this build. iPhone can still add the pad to the Home Screen and use
that link while the PC is on. See Browser pad. Like the phone protocol
this is LAN-only — never forward the port on a router.
Stable key for bookmarks and Home Screen. An iPhone added to the Home Screen
keeps the original ?k= URL. The receiver creates ~/lemoGamePad-web.key with
owner-only permissions on POSIX and reuses it on later launches, so no flag is
needed for a stable shortcut. --web-key-file PATH selects a different file;
an explicit --web-key bypasses the file. Keep the key private — it is the only
thing guarding the local page. If the file is unreadable or corrupt, the server
warns and falls back to a random key instead of refusing to start.
Address for bookmarks and Home Screen. The console and GUI print and QR the
selected LAN-IP URL, for example http://192.168.1.20:9878/?k=AbCdEf12. There is
no mDNS .local layer now: if DHCP gives the PC a new address, copy the new
Web pad URL or rescan the browser QR. The key stays the same by default;
reserve a static DHCP IP to keep the address stable too. An open browser pad
receives a copyable new link card when the receiver notices the change, but
a tab that has already lost its socket needs the URL from the panel or console.
Wi-Fi setup QR. --wifi-qr adds one scannable QR for the active network so
the phone joins the same Wi-Fi before opening a pad link. The desktop panels
offer the same QR in their Pairing tab. It uses nmcli on Linux or netsh wlan
on Windows and never prompts or changes connections. The payload contains the
plaintext password, so the console does not print it and saved PNGs are
owner-only on POSIX; enterprise networks and unreadable PSKs are skipped. Scan
the Wi-Fi QR first, then the app/browser QR.
The console shows the PC IPs, the pairing QR, one line per connected phone
(slot, address, packets/second, battery), the idle state and the slot limit.
Ctrl+C, Ctrl+Break or closing the window quits and unplugs every pad.
Eight phones on Windows. XInput, the API most Windows games use for
controllers, has a hard limit of four pads. With the default x360 backend the
server therefore emulates four Xbox 360 pads and automatically switches pads
5–8 to DualShock 4/HID, which DirectInput and Raw Input games can see. If a
game lists only four controllers, that is the game’s XInput limit, not the
server: use --pad ds4 (all eight as DirectInput) or a game/emulator with
DirectInput support. Linux has no such limit and can use all eight Xbox 360
pads.
Why Xbox 360 and not a literal DualShock 3? Windows has no built-in DS3
driver; a true DS3 needs a kernel driver (DsHidMini). Games and emulators
(RPCS3, PCSX2, Steam, RetroArch) all accept a standard pad and map the PS3
layout to it exactly as the face-button table. Use --pad ds4 if a game shows
PlayStation button prompts.