How to Share One Mouse Between Two Computers in Windows 11

Ollie Green
ยท
8 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Youโ€™ve got two computers on one desk, two mice cluttering it, and you keep grabbing the wrong one. Software can move a single pointer across both screens over your home network, or hardware can hand the mouse from one PC to the other with a button press.

Share the pointer across screens (software)

These options make the pointer slide off the edge of one monitor and onto the other computerโ€™s screen. The mouse stays physically connected to one PC. The software sends its movements to the second PC over your local network.

Fix #1: Set up Mouse Without Borders in PowerToys (Windows to Windows)

If both machines run Windows, start here. Mouse Without Borders is a free tool included in Microsoft PowerToys, which you install separately. It controls up to four Windows PCs from one mouse and keyboard.

Before you start, put both PCs on the same private network. Guest Wi-Fi often blocks devices from seeing each other. If either PC is a work computer, check that your IT policy allows PowerToys before you install it.

  1. Install PowerToys on both PCs from the Microsoft Store, or open Terminal and run winget install --id Microsoft.PowerToys.
  2. Open PowerToys and select Mouse Without Borders in the left sidebar.
  3. Turn on the Enable Mouse Without Borders toggle on both PCs.
PowerToys Settings with Mouse Without Borders selected in the sidebar and the enable toggle turned on
  1. On the first PC, select New Key. A security key appears.
  2. Write down that key and the first PCโ€™s name, which is shown on the same page.
  3. On the second PC, type the security key and the first PCโ€™s name into the connection fields.
  4. Select Connect.
Mouse Without Borders page on the second PC showing the security key field, the other PC's name field, and the Connect button
  1. In the device layout on the same page, drag the PC thumbnails so they match where the monitors physically sit on your desk.
  2. Move your pointer past the matching screen edge.

The pointer should jump onto the second PCโ€™s screen. Your keyboard follows it.

Want it at the sign-in screen too? Turn on Use Service. Microsoft requires you to run PowerToys as administrator before you can enable it. After that, Mouse Without Borders can control the Windows lock screen and elevated (administrator) apps on the other PC. Microsoft warns that service mode adds some security risk, so only turn it on if you need it.

If the PCs wonโ€™t connect, check these in order:

  • Network profile: Go to Settings > Network & internet > Wi-Fi (or Ethernet), select your network, and set Network profile type to Private.
  • Firewall: Open Windows Security > Firewall & network protection > Allow an app through firewall, and make sure PowerToys is allowed on private networks.
  • Pointer goes the wrong way: Rearrange the PC thumbnails in the layout.
  • Copy and paste doesnโ€™t carry over: Security software, a VPN, or a work policy can block clipboard sharing even when the pointer works.

Mouse Without Borders also shares your clipboard and can copy files between connected PCs. On a shared or work network, turn off Share clipboard and Transfer file in its settings if you donโ€™t want data moving between machines.

Mouse Without Borders canโ€™t control a Mac. For mixed setups, skip to Fix #3.

Fix #2: Turn on Logitech Flow (compatible Logitech mice)

If you already own a Logitech mouse with Easy-Switch buttons, check whether it supports Logitech Flow. Flow pairs the mouse to each computer on a separate channel, then uses your network to hand it off when the pointer hits the screen edge. It works between Windows and Mac too.

  1. Install the latest Logi Options+ on both computers.
  2. Pair the mouse to the first computer on Easy-Switch channel 1.
  3. Press the Easy-Switch button to select channel 2, then pair the mouse to the second computer.
  4. Open Logi Options+ and select your mouse.
  5. Open the Flow section and turn Flow on.
Logi Options+ Flow section with both computers detected and the screen layout visible
  1. Allow Logi Options+ through Windows Firewall if a prompt appears.
  2. Drag the computer icons to match your desk layout.
  3. Move the pointer past the configured screen edge to test it.

Logitech says Flow finds computers that are paired to the same mouse and on the same network. Corporate networks, VPNs, and guest Wi-Fi routinely break that discovery. If Flow refuses to work, the Easy-Switch button on the mouse still switches computers manually.

Fix #3: Use Deskflow, Synergy, or ShareMouse (Windows, Mac, and Linux)

When one computer runs Windows and the other runs macOS or Linux, you need cross-platform software.

Current Synergy app on Windows showing the screen layout with two computers connected
  • Deskflow is free and open source, and runs on Windows, macOS, and Linux. Itโ€™s the maintained choice now that Barrier is no longer updated, and it can still connect to computers running Barrier or Input Leap.
  • Synergy is the commercial option. It comes with vendor support, but expect to pay for a license.
  • ShareMouse is another paid option for Windows and Mac setups, with a free edition for personal use.

Setup follows the same pattern for all three. Hereโ€™s the Deskflow flow:

  1. Install Deskflow on both computers.
  2. On the computer that has the physical mouse and keyboard, set Deskflow to run as the server.
  3. On the other computer, set it to run as a client.
  4. On the client, enter the serverโ€™s IP address or computer name.
  5. On the server, open the screen layout and drag the clientโ€™s screen next to the serverโ€™s.
  6. Allow the app through the firewall on both machines when prompted.

The pointer crosses at the edge you set. All three apps send input over your local network, so a busy Wi-Fi connection can add a little cursor lag. A wired connection helps. If both PCs sit near your router, run an Ethernet cable to each one.

If both computers are Macs: Universal Control

Windows canโ€™t join this one, but if your second setup is all Apple, Universal Control is built in. One Mac controls up to two other Macs or iPads within about 30 feet. Every device needs the same Apple Account, two-factor authentication, Wi-Fi, Bluetooth, and Handoff turned on.

  1. Click the Apple menu > System Settings > Displays.
  2. Click Advanced.
  3. Turn on Allow your pointer and keyboard to move between any nearby Mac or iPad.
  4. Optionally turn on Push through the edge of a display to connect to a nearby Mac or iPad.
System Settings > Displays > Advanced with the Universal Control toggles turned on
  1. With both devices awake and unlocked, push the pointer past the screen edge nearest the other device.

Switch the mouse with a button (hardware)

These options donโ€™t slide the pointer between screens. You press a button and the mouse jumps to the other computer. In exchange, thereโ€™s no network to troubleshoot and no input lag.

Fix #4: Use a mouse with multi-device switching

Plenty of current mice store two or three Bluetooth pairings. Pair the mouse with each computer, then press its device button to switch.

Logitech M720 Triathlon mouse with its 1-2-3 device switch buttons

The Logitech M720 Triathlon is one example. It connects through its USB receiver or Bluetooth, and a button on top switches computers.

  1. Turn the mouse on and press the device button to select the first channel.
  2. Pair it with the first PC: go to Settings > Bluetooth & devices > Add device > Bluetooth, or plug in the receiver.
  3. Press the device button again to select the next channel.
  4. Hold the button until the light blinks, then pair it with the second PC the same way.
Windows 11 Add a device dialog over Bluetooth & devices settings, with the Bluetooth option highlighted

Press the button to switch whenever you need to. If the second PC has no Bluetooth, a cheap USB Bluetooth adapter fixes that. Youโ€™ll also want a keyboard with the same switching feature, or youโ€™ll still be juggling two keyboards.

Fix #5: Use a USB switch or KVM switch

A hardware switch is the most reliable option. Itโ€™s also the right call on work networks where sharing software is blocked, or when you donโ€™t want a clipboard flowing between machines.

Two-port USB KVM switch with Computer 1 and Computer 2 buttons
  1. Connect each PC to the switch with the USB cables it came with.
  2. Plug your mouse and keyboard into the switchโ€™s peripheral ports.
  3. For a KVM, connect each PCโ€™s video output to the switch and your monitor to its display output.
  4. Press the switch button, hotkey, or remote to change computers.

Windows usually picks up the mouse again a moment after each switch. Buy a switch with enough ports for every computer you plan to add, since you canโ€™t expand a two-port model later.

Which method fits your setup

Your setupBest methodPointer slides across screens?
Two or more Windows PCsPowerToys Mouse Without BordersYes
Compatible Logitech mouse, any OSLogitech FlowYes
Windows plus Mac or LinuxDeskflow, Synergy, or ShareMouseYes
Macs and iPads onlyUniversal ControlYes
Want a button, no softwareMulti-device mouseNo
Locked-down or offline networkUSB or KVM switchNo
Wireless computer mouse in front of a keyboard

When nothing works

If no software option connects, your network is almost certainly the blocker. Client isolation on guest Wi-Fi, a VPN, or a corporate firewall will stop every one of these apps. Test with both PCs on the same router over Ethernet. If it still fails, or IT wonโ€™t allow sharing software, a USB or KVM switch sidesteps the network entirely.

Conclusion

For two Windows PCs, PowerToys Mouse Without Borders is the one Iโ€™d set up first: itโ€™s free, quick to set up, and gets the second mouse off your desk. If it connects but keeps dropping, look at your Wi-Fi before blaming PowerToys. And if you need the pointer to work every time with zero setup headaches, a hardware switch is less elegant but more dependable.