Direct answer
It depends on the connection direction. An agent that connects out to the controller works. Having the controller connect to the agent over SSH is not a good fit, because the machine may not be reachable from the public internet.
Basis
- The Jenkins documentation (Exposed Services and Ports, checked 2026-11-12) explains that the controller can open a TCP port for inbound agents to connect to, and that agents can use WebSocket transport instead, in which case no extra TCP port is needed and traffic goes through the controller's existing web address.
- In both cases the machine running the agent opens the connection to the controller. That is the same direction as GitHub and GitLab runners, and it places no inbound requirement on this Mac.
- The other common setup is to enter a host and SSH credentials in the node configuration and let the controller connect to the node's SSH port. That requires the controller to be able to reach the node. The connection methods we deliver are UU Remote and RustDesk only, and whether the machine can be reached from the public internet is determined by the delivery notes.
- The agent is a Java process. The customer account has admin rights, so you can install a JDK with Homebrew.
Boundaries: when the answer is different
All of this assumes this machine can reach your controller. If the controller sits only on a company intranet and needs a VPN to get in, this route is closed: you may not change the network configuration during the rental, and you must check with support before installing VPN-type software. We do not provide a Jenkins controller, only the Mac. The agent process has to stay running, so you need to set it up yourself to start at login. Jobs that need the simulator or signing must run in the logged-in user's session, not as a pure background system service. Whether the login state is restored after the machine restarts is something to ask support to check against the delivery configuration.
How to do it
- Create a node on the controller and choose the launch method where the agent connects to the controller, preferring WebSocket.
- On the remote Mac, install a JDK and download the agent program offered on the controller's page.
- Start the agent with the command shown on the page and confirm the node goes online.
- Turn that start command into a login item for the current user.
- Give the node a macOS label and restrict iOS jobs to it.
Related questions
- Rented Mac mini as an always-on build machine for small teams? Count your build minutes first
- Can a self-hosted runner connect to GitHub without a fixed public IP?
- Runner did not come back online after the Mac mini restarted: what to do
- Is the network exit on my rented Mac mini used only by me?
- How to keep long tasks running on a remote Mac mini after you disconnect
Use case
This question belongs to the use case: Rented Mac mini as an always-on build machine for small teams? Count your build minutes first
Other questions in the same use case:
- How many build jobs can one Mac mini run at the same time?
- Can a self-hosted runner keep DerivedData and dependency caches between builds?
- Can I run XCUITest and the iOS simulator on a remote Mac mini?
- Can I use a rented Mac mini for automatic nightly builds?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support