Use one keyboard and mouse with two PCs
If a desktop and a laptop share your desk, you don't need two keyboards and two mice. Here's how to make the cursor slide onto the next PC when you push it past the edge of the screen, on Windows 10 and 11.
Your options
There are two ways to do it. A KVM switch is hardware that moves your keyboard and mouse from one PC to another at the press of a button. A software KVM sends your input over the network instead. If both PCs are on the same router (Wi-Fi or wired), software is the simplest: no cables to replug, and you change PCs just by moving the cursor. See KVM switch vs software for a full comparison.
What you need
- Two or more PCs running Windows 10 22H2 or Windows 11 (64-bit)
- The same network (the same router, over Wi-Fi or cable)
- One main PC with the keyboard and mouse plugged in
Connect with LinkDesk
Install on both PCs
Get the installer from the download page and install it on both PCs. The installer also adds the Windows Firewall rules it needs.
Allow connections on the second PC
On the PC you want to control (for example the laptop), open the control panel from the tray icon and choose Add device › Allow connections. It accepts requests for 2 minutes.
Connect from the main PC
On the main PC, open Add device. When the laptop appears under nearby devices, click Connect. If it doesn't appear, use Connect by IP address and type the laptop's IP address.
Compare the 6-digit code
Both screens show the same 6-digit number (for example 482 913). Click Match on both. If the numbers differ, don't confirm: another device may be in the middle.
Arrange the screens
In Workspace, drag the screens to match your real desk and click Save arrangement. If the laptop sits to the right, place it on the right.
Push the cursor past the edge
Move the mouse past the screen edge facing the laptop. The cursor moves onto the laptop and your typing follows it. Push back the other way to return.
If something doesn't work
- The PC doesn't show up nearby: check both PCs are on the same router. Networks that block devices from talking to each other (client isolation, common in offices and hotels) won't work. Try connecting by IP address.
- Typing doesn't reach an administrator window: Windows doesn't let normal programs type into elevated windows. The control panel tells you when this happens; normal windows work as usual.
- The cursor crosses at the wrong edge: make sure the layout in Workspace matches where your monitors really are, and save again.
- Lock screen: input is never sent to the secure desktop (sign-in or UAC screens); it returns to your main PC.
What to try next
Once connected, you can paste on one PC what you copied on the other (copy and paste between PCs) and send files that the other PC approves (move files between PCs).