Set up your relay server
Connect your phone and computer through a server on your own Cloudflare account. Follow the same four steps from either app.
Before you start
- The app on your computer, with its relay server settings open.
- A Cloudflare account. You can start on the free plan; no domain is needed.
- Node.js for the deploy command. Your coding agent can install it if needed.
- Keep the access token the app creates. You will use it with the server address.
Four steps to connect
Open the app’s relay server settings and choose Create server files. The app creates a folder in your home folder and fills in the access token. Keep both for the next step.
Relay server
Create server files
Paste the request below into your coding agent. Sign in to Cloudflare when the browser opens. After deployment, save the https address the agent gives you.
Find the relay server folder this app created in my home folder and deploy it to my Cloudflare account. If there is more than one relay project, ask which folder to use. Keep the existing settings and access token; do not print the token. In that folder, run npx wrangler login so I can sign in, then npx wrangler deploy. When it finishes, tell me the https server address.
https://my-relay.example.workers.dev
Doing it yourself? Open a terminal in the generated folder, then run:
npx wrangler login
npx wrangler deployReturn to the app’s relay server settings. Enter the https address and save. Keep the access token from step 1; do not add /ws or any other path to the address.
Relay server
Save
Show a new QR code in the app and scan it with your phone. Check that your phone connects. To check access away from home, turn off the phone’s Wi-Fi briefly and try over mobile data.
If something goes wrong
Where are the server files?
Open your home folder in Finder and look for the relay folder created by the app. Its name can differ between apps. If it is missing, choose Create server files again.
Cloudflare asks for a workers.dev subdomain
Choose a name when asked. Cloudflare uses it to create your free server address; you do not need to buy a domain.
The address or token does not match
Use the https address printed after deployment, without a path. Check that the app’s token matches TOKEN in the generated wrangler.jsonc. Keep the token private.
It works on Wi-Fi but not on mobile data
Save the new relay address, then scan a new QR code. Keep the app running on your computer and check that both devices can reach the internet.
Using another computer or changing the token
Use the same server address and token on the other computer, then scan its QR code. To change the token, update TOKEN in the server configuration, deploy again and enter the new token in the app.
It stops working during the day
Check usage and limits in the Cloudflare dashboard, and any daily limit shown by the app. On Cloudflare’s free plan, operations over a free limit fail; daily limits reset at 00:00 UTC.