Client gets a localhost link but cannot open it? Use a Cloudflare Quick Tunnel to share a temporary HTTP preview running on your cloud Mac; do not treat it as a production release.
This fits independent developers who travel with an iPad or lightweight laptop, freelancers collecting feedback before deployment, and remote workers who need to distinguish a Mac’s local address from a client-facing link.
Cloudflare Tunnel for a cloud Mac local preview: the timeline
A remote desktop connection and a client preview solve different problems. Remote desktop access lets you operate the Mac. It does not make a development server on that Mac directly reachable from a client’s browser. A tunnel gives outside traffic a route to the service, but the client must use the generated sharing address rather than your localhost URL.
That distinction is the first decision to make: are you asking a client to review a temporary build, or are you publishing an application people should rely on? Quick Tunnels are intended for testing and development, so use them for a time-limited review. Choose a proper deployment or a separately configured, persistent setup for ongoing access.
Why can’t a client open the localhost link from my cloud Mac? Because localhost means “this device.” When the client opens that address, their browser looks for a service on their own device, not on your cloud Mac. Keep the local URL for your own checks; share the tunnel URL for the client review.
Before you start, make sure you can inspect the project and its running process on the Mac. If you’re still arranging a remote development setup, VMMini’s Mac options can help you check what environment you may need. That is a separate decision from whether your framework and project are ready to expose for review.
Before sharing: prepare the preview on the Mac
The purpose of preparation is to establish that the preview works locally and contains only what the client should see. First, start the project on the cloud Mac using its normal development or preview command. Keep the terminal session visible so you can tell whether the server starts, reports an error, or exits.
For a Vite project, check the command and server options in the Vite CLI documentation. Vite’s documentation lists 5173 as the default development port, but your project can use a different one. Confirm the actual address printed by your running process instead of assuming the default. The Vite server options also explain host binding and allowed-host settings, which can affect whether a request routed through a tunnel is accepted.
A build preview and a development server are not interchangeable. If you intend to inspect a built site, check the project’s preview command and the Vite preview options. Use the address and port that the process actually reports. Don’t copy a command from a guide without confirming what your project starts.
| What you are checking | Evidence to look for on the cloud Mac | Why it matters |
|---|---|---|
| The right project is running | The terminal shows the expected project and a successful server start | A tunnel cannot fix a failed or incorrect app |
| The local address is correct | The process reports the host and port that you will use as the tunnel target | A mismatch sends the tunnel to the wrong service |
| The preview is suitable for review | You have checked the visible pages, assets, and client-facing content | A working URL can still expose unfinished or sensitive material |
| The framework accepts the request | The host and allowed-host configuration matches the intended preview route | Framework rules can reject traffic even when the tunnel is running |
Review the content as carefully as the connection. Look for customer records, private screenshots, credentials, internal routes, and unfinished pages that you did not intend to share. A development preview may contain more than the page you plan to discuss. Remove or mask anything the client does not need to see before creating an external route.
For Vite, pay particular attention to server.allowedHosts. Follow the current host configuration guidance and allow only the hostname you need when the setup calls for it. Avoid turning off host checks broadly just to make a link work; that changes the boundary of the development server and is not a substitute for understanding the request.
Establishing the temporary tunnel
A Quick Tunnel maps a local HTTP service to a generated public sharing address. It does not convert the text localhost into a remotely usable link. The tunnel process must be running, and its target must match the local service you have already checked. Cloudflare describes Quick Tunnels as a development and testing option in its Quick Tunnel documentation.
Install cloudflared using the current instructions in Cloudflare’s download documentation. Confirm that the software can run on your cloud Mac before scheduling a client review. Availability of an installer does not by itself prove that your host permissions or outbound network conditions will allow a tunnel connection.
Start the tunnel with the target address for your running service. For example, if Vite reports the documented default port, the command format is:
cloudflared tunnel --url http://localhost:5173
If your project reports another port, replace the target with that actual local address. Follow the current Quick Tunnel setup instructions for the command and expected output. Keep the terminal open and copy the generated sharing address only after the tunnel reports that it has started.
The generated address is a route to the running preview, not a new deployment. Its availability depends on the tunnel process and the service behind it remaining active. Treat it as temporary: don’t promise that it will stay available after you close the session, restart the process, or move to a different setup. Cloudflare’s Tunnel overview explains the connection model and the distinction between establishing a tunnel and making an application suitable for production.
Does a Quick Tunnel make the preview appropriate for a formal client presentation? It can support a short review when the page is ready and access is controlled as needed. It is not a production publishing method or a guarantee of stable, continuing access. If the client needs a durable link, plan for a proper deployment or review a persistent tunnel configuration separately.
Sharing the link with an access boundary
A generated URL is convenient, but convenience is not the same as access control. Anyone who receives or obtains the link may be able to reach the preview unless you have configured an effective restriction in front of it. Consider what the page reveals before sending the address, and share it only with people who need to review it.
If the work requires identity-based access, use an appropriate access policy rather than assuming that an obscure URL is private. Check the current access-policy requirements for your account and application before relying on an email-based restriction. Test the policy with an account that should be allowed and another that should not. A prompt appearing on your own browser is not enough to prove that the client will see the intended boundary.
A tunnel encrypting traffic or an access prompt appearing in front of a page does not guarantee that the preview is safe to share. Review the content, the recipient list, and the policy behavior before sending the URL.
Send the address through the channel you normally use with the client, and say that it is a temporary review link. Avoid placing it in a public issue, open project notes, or a shared space with a wider audience than the review requires. If the project contains sensitive material, use a sanitized preview or a controlled review environment instead.
Client-side acceptance before the review
The goal of acceptance is to reproduce the client’s view, not to confirm that the page still works in your own logged-in browser. Open the generated URL from a device other than the cloud Mac, ideally on a separate network. This catches cases where your browser is using a local session, cached assets, or a network path the client will not have.
Use the checklist below before sending the link:
- [ ] The project is running on the cloud Mac, and its terminal shows the expected service address.
- [ ] The tunnel process is active and has printed the sharing address you plan to send.
- [ ] The sharing address opens from a device other than the cloud Mac.
- [ ] The page’s images, styles, scripts, and other required assets load.
- [ ] Any login or identity restriction behaves as intended for an allowed reviewer.
- [ ] The page does not reveal customer data, credentials, or unfinished content that should remain private.
- [ ] The client knows the link is temporary and is not the final production URL.
Check interaction paths, not just the first screen. Try the navigation and key actions the client is expected to review. Confirm that authentication behaves as expected and that the page does not rely on state already stored in your own browser. If the preview uses server-sent events (SSE) or another development feature, verify that behavior directly. Cloudflare documents feature limitations for Quick Tunnels; consult the current Quick Tunnel notes rather than assuming every development workflow is supported.
If the client cannot load the page, troubleshoot in a fixed order. First, confirm that the local server is still running. Next, check that the tunnel process is active and that you copied its current address. Then verify that the tunnel target points to the actual local host and port. Finally, check whether the framework’s host rules reject the request. Cloudflare’s connectivity prechecks and tunnel troubleshooting guide help you separate a network connection issue from a local application issue.
| Symptom | First check | Next check |
|---|---|---|
| The client sees a connection error | Is the local preview still responding on the Mac? | Is the tunnel process running and connected? |
| The address opens, but the app rejects the request | Does the framework allow the requested hostname? | Is the tunnel targeting the correct local service? |
| The page loads without some assets | Do asset requests use the expected host and paths? | Does the app depend on local-only state or a development feature? |
| The review works for you but not the client | Are you testing from a separate device and network? | Does a login or access policy treat the client differently? |
Do not respond to a failure by disabling every host check or access restriction. That may hide the symptom while widening access. Change one relevant setting at a time, then repeat the external test. If your cloud Mac cannot reach the required Cloudflare services, consult the connectivity prechecks and check the host’s outbound network conditions before changing the application.
Closing the review route
When the review ends, stop the Quick Tunnel process on the cloud Mac. Then open the old sharing address from an external device and confirm that it no longer serves the preview. This is the evidence that the temporary route has been closed; closing the laptop lid or disconnecting your own remote desktop session is not the same check.
Keep the project on the Mac for revisions, and record the client’s feedback in your usual project notes. Do not reuse a temporary review URL as a delivery link. If the client needs ongoing access, treat that as a new deployment decision: check the requirements for a fixed hostname, access policy, monitoring, and the application’s production hosting rather than extending a development shortcut by habit.
The choice depends on the purpose and expected lifetime of the link:
| Need | Suitable route | Main trade-off |
|---|---|---|
| Short client review of a running local page | Quick Tunnel | Temporary and dependent on the running tunnel and preview |
| Repeated access through a stable hostname | A separately configured named tunnel or another persistent setup | Requires deliberate configuration and ongoing administration |
| Public, dependable access to a finished application | Production deployment | Requires release, hosting, and operational checks beyond a development tunnel |
If you still need a macOS environment while traveling, compare the work you can safely do on your current device with the work that must run on a Mac. A laptop-only workflow can be simpler when the project has no macOS-specific requirements, but it can leave you without the environment needed to reproduce or revise a Mac-based project. Buying a Mac gives you a machine you control, but also means carrying it, maintaining it, and planning for loss or damage. A remote Mac avoids carrying that hardware, yet depends on network access and does not replace a production deployment or a tested backup plan.
Before choosing, confirm that your project’s tools can be installed and run in the remote environment and that your workflow allows the required outbound connections. VMMini’s help center is a place to check service-related questions; if you do not yet have a Mac environment, review the available Mac plan details before deciding whether a temporary or ongoing rental fits your work. If your preview needs a permanent public link, solve the deployment requirement first—the Quick Tunnel is for review, not the final handoff.
Further reading
Run Your Client Preview on VMMini
Rent a dedicated VMMini M4 physical Mac mini to run your local web preview in a consistent environment.
