Control a Windows PC from an Android phone over the local network: trackpad, joystick, mouse buttons, scrolling and live keyboard. No internet, cloud or accounts.
PC: open MobileMouse -> START SERVER
PHONE: open MobileMouse -> PC appears -> tap to connect
RETURN: open both -> the remembered PC reconnects automatically
Version 1.2.5, protocol 3. Discovery over mDNS and UDP, control over an authenticated WebSocket on TCP 8765.
| Path | Contents |
|---|---|
android-app/ |
Flutter app, Kotlin NSD channel, unit and widget tests |
pc-server/ |
Python WebSocket server, discovery, auth, text injection, Tk panel |
scripts/ |
test, build and packaging scripts |
docs/ |
setup, architecture, discovery, security, testing |
dist/ |
release APK and Windows executable |
- Windows 10/11 PC with a desktop session (the panel uses Tk, input uses
pynput). - Python 3.10 or newer to run the server from source.
- Android 7.0 (API 24) or newer.
- Both devices on the same Wi-Fi or Ethernet subnet, on a private network profile.
pip install -r pc-server/requirements.txt
python pc-server/main.py # control panel
python pc-server/main.py --headless # console onlyPress START SERVER. The panel lists its addresses and ports, discovery status, connected phones, trusted devices and pending pairing requests. Closing or minimising it keeps the server running in the notification area; the tray menu has SHOW MOBILEMOUSE, SERVER STATUS, START/STOP SERVER and EXIT.
Flags: --port, --name, --state-dir, --no-mdns, --no-udp,
--reset-trust, --self-test, --auto-approve-pairing (insecure, testing
only). Details in docs/setup.md.
Allow these ports on private networks; Windows normally asks once:
| Port | Protocol | Purpose |
|---|---|---|
| 8765 | TCP | mouse and keyboard control |
| 5353 | UDP | mDNS discovery |
| 8766 | UDP | UDP discovery announcements |
The server never changes firewall settings itself.
dist/MobileMouse-1.2.5.apk is a prebuilt universal APK signed with the debug
key:
adb install -r dist/MobileMouse-1.2.5.apkBuild from source:
cd android-app
flutter pub get
flutter build apk --release # scripts/build/build_apk.sh also copies it to dist/- Start the server, then open the app on a phone on the same network.
- Tap the PC. The first time, approve the pairing request on the PC and compare the six-digit code; later launches reconnect automatically.
- TRACKPAD drags to move, two fingers scroll, the blocks below press and hold a button. JOYSTICK sets cursor speed from deflection and springs back on release.
- RELEASE ALL releases held buttons, stops the stick and never closes the connection.
- CFG sets trackpad and joystick sensitivity, click haptics and custom control layouts.
- The keyboard icon opens KEYBOARD INPUT without leaving the connection:
every edit reaches the focused PC window as it happens, with no SEND step.
Xends the session. - The link dot shows the connection state; tap it for the PC name and endpoint. X on the status link disconnects.
If discovery is blocked, open // ADVANCED SETTINGS and enter the PC's IPv4
address from ipconfig. Only a literal IPv4 address is accepted and pairing is
still required.
scripts/test/run_python_tests.sh # PC server suite, 205 tests
scripts/test/run_flutter_tests.sh # analyze + test, 162 testsNo test moves the real cursor, opens a pairing dialog or touches the trust files. See docs/testing.md.
| Symptom | Fix |
|---|---|
| PC never appears | Same network and private profile; allow UDP 5353/8766; try ADVANCED SETTINGS |
not accepting connections on port 8765 |
Press START SERVER; allow TCP 8765 on private networks |
The PC did not respond |
Firewall or different subnet; compare with the address shown on the PC |
APPROVE ON PC never completes |
Approve within 90 s with the control panel open |
no longer trusted |
The device was revoked; approve the new pairing request |
another client is connected |
One phone controls the PC at a time |
| Text appears in the wrong place | Click the target field first; elevated windows ignore synthetic input |
Discovery and protocol: docs/discovery.md. Threat model and limitations: docs/security.md. Code layout: docs/architecture.md.