Skip to Content

GuidesControl your Mac

How to control your Mac from your iPhone

Updated 7 min read iPhone, iPad and Mac

The film plays on the Mac across the room, the volume is too low, and the keyboard is out of reach. You would like to pause, turn it up or put the Mac to sleep from your phone.

This guide starts with what Apple builds into macOS and iOS, and what each way is good for. It then shows how CM - Remote turns your iPhone or iPad into a remote for your Mac over your Wi-Fi.

The ways at a glance

WayWhat you controlWhat it needsFrom
Universal Control The pointer and keyboard of the MacAn iPad next to the Mac, the same Apple AccountiPad
Remote app with Music The Music library on the Mac: play, pause, volumeThe same Wi-Fi, a 4 digit code in MusiciPhone and iPad
Shortcuts over SSH Commands you write, such as putting the Mac to sleepRemote Login on the Mac, a scriptiPhone and iPad
CM - Remote Playback, volume, apps, screen saver, and with Pro sleep, restart and moreCM Agent on the Mac, the same Wi-FiiPhone and iPad

1Use the Mac from an iPad with Universal Control

With an iPad next to the Mac, one pointer and one keyboard move between both screens. It does not work from an iPhone.

  1. On the Mac, choose Apple menu > System Settings > Displays, click Advanced and turn on Allow your pointer and keyboard to move between any nearby Mac or iPad.
  2. On the iPad, open Settings > General > AirPlay & Continuity and turn on Cursor and Keyboard.
  3. Move the pointer past the edge of the Mac screen toward the iPad.

Both devices need the same Apple Account, Bluetooth, Wi-Fi and Handoff turned on, and must be within about 10 meters of each other.

2Control Music on the Mac with the Remote app

Apple's Remote app plays and pauses the Music library of the Mac from an iPhone or iPad on the same Wi-Fi. It controls the Music app only.

  1. Install Remote from the App Store and open it. Tap Connect Manually: a 4 digit code appears.
  2. On the Mac, open Music and click the Remote button below Devices in the sidebar.
  3. Enter the 4 digit code.

3Run commands with Shortcuts and Remote Login

For people at ease with Terminal: a shortcut on the iPhone can send a command to the Mac, for example to put it to sleep.

  1. On the Mac, choose Apple menu > System Settings > General > Sharing.
  2. Click the info button next to Remote Login, turn it on, and choose who is allowed under Allow access for.
  3. On the iPhone, create a shortcut with the Run Script Over SSH action, the address and user shown under Remote Login, and your command.

Apple notes that Remote Login can make your Mac less secure. Allow only your own user, and turn it off when you no longer need it.

4Set up CM - Remote in two minutes

CM - Remote works with CM Agent, a small menu bar app on the Mac that receives the commands. Get it on the Mac App Store, or from decodr.tech with more controls.

  1. On the Mac, install CM Agent and open it. Its icon appears in the menu bar.
  2. On the iPhone, open CM - Remote. Under Install CM Agent on your Mac, Send link to Mac sends you the download link if you need it.
  3. Under Choose your Mac, tap Pair next to the name of your Mac.
  4. Both screens show the same 6 digit code. Click Allow on the Mac, then tap The codes match on the iPhone.
The first screen of CM - Remote: install CM Agent on your Mac, then choose your Mac
Install CM Agent, then choose your Mac
CM - Remote showing a 6 digit pairing code, the same as on the Mac
The same code on both screens

Allow Local Network for CM - Remote when the iPhone asks: it is how the app finds your Mac on your Wi-Fi. To look around first, tap See a demo: a pretend Mac, nothing is sent.

5Play, pause, turn it up, open an app

  • Now playing: the track or video in Music, Spotify or your browser, with play and pause, next and previous, and jumps of 10 seconds back or forward. Choose what to control picks the source.
  • Volume: a slider and a mute button. The volume buttons of your iPhone also control the Mac.
  • Apps: the apps running on your Mac, under Running on your Mac.
  • Screen: start the screen saver, or keep the Mac awake during a long download.
The CM - Remote screen with now playing, volume, open apps and power controls
Now playing, volume, apps and power
The list of apps of the Mac in CM - Remote, with a search field
Every app of the Mac, to search and open

6Sleep, restart and more with Pro

The daily controls are free. CM - Remote Pro, a one-time purchase, adds the rest:

  • With either CM Agent: open any app and search the installed apps, pair several Macs and switch between them, see the details of each Mac, and use Shortcuts.
  • With the full CM Agent from decodr.tech: sleep, restart and shut down, lock the screen, dark mode, trackpad and keyboard, quit or force quit an app, full screen, windows, a Time Machine backup, and files sent to your iPhone.

To switch Macs, tap the name of the Mac at the top of the remote screen and pick another one, or Pair another Mac….

7When the Mac does not show up

  • Check that the Mac and the iPhone are on the same Wi-Fi and that CM Agent is open on the Mac.
  • On the iPhone, allow Local Network for CM - Remote in the Settings app.
  • If you use a firewall such as LuLu or Little Snitch, allow incoming connections for CM Agent.
  • So the agent is there after a restart, turn on Open at login in the CM Agent settings.
  • If music does not answer, allow CM Agent to control that app on the Mac, in Privacy & Security > Automation.

Questions

Does CM - Remote work away from home, over mobile data?

No. It works on your local network only: the iPhone and the Mac must be on the same Wi-Fi. Nothing goes through a server on the internet.

Which CM Agent should I install?

The Mac App Store edition covers playback, volume, apps and the screen saver. The full edition from decodr.tech adds sleep, restart, shut down, lock, trackpad and keyboard, and more. Both work with the same iPhone app.

Which devices do I need?

An iPhone or iPad with iOS 17 or later, and a Mac with macOS 14 or later running CM Agent 2.0 or later.

Is CM - Remote Pro a subscription?

No. It is a one-time purchase. Restore it on another device with Restore purchase in the app.

Your Mac, one tap away

CM - Remote for iPhone and iPad CM - Remote controls what plays on your Mac, its volume and its apps from your iPhone or iPad. The daily controls are free.
Download on the App Store