Connect Pip MDM with Cloudflare Tunnel
A phone on mobile data needs to reach the same address as a phone on work Wi-Fi. Cloudflare Tunnel gives both devices a public HTTPS address. Your Mac starts the connection to Cloudflare and Cloudflare uses it to pass device traffic to Pip MDM.
You need
- A domain in a free Cloudflare account, such as
example.com. - Pip MDM installed, with your administrator account created.
1. Create the tunnel
- In the Cloudflare dashboard, open Networking > Tunnels and choose Create a tunnel.
- Choose Cloudflared as the connector and give the tunnel a name, such as
pip-mdm. - Cloudflare shows install commands. You don't need to run them. Copy the long token after
--token.
2. Add a public hostname
- In the tunnel's Routes tab, choose Add route > Published application and add a hostname such as
mdm.example.com. - Set Type to HTTP and URL to
localhost:47811.
Port 47811 serves device traffic only. The console isn't reachable through the tunnel.
3. Connect Pip MDM
- In Pip MDM, open Connect to the internet (or Configuration > Connection).
- Choose Cloudflare Tunnel, paste the token and the hostname, and choose Connect.
Pip MDM downloads Cloudflare's cloudflared program, checks that Cloudflare signed it, and keeps the tunnel running, including after a restart. The status shows Tunnel connected when it's ready.
Keep the hostname
Devices remember the address they enrolled with. Choose the hostname once and keep it; if you move Pip MDM to another Mac, move the tunnel with it.