Publish a Site Through Your Tunnel
Two steps: tell the connector what to serve, then point a domain at the tunnel.
1. Publish the service
On your tunnel page, fill in the Publish a service form:
- Scheme —
httporhttps, whichever your application speaks locally. - Port — the port it listens on, for example
80or3000. - Private host or IP — the address as seen from the machine running the connector. Use
127.0.0.1if the application runs on that same machine, or a private IP such as10.0.0.5if it is on another box on your network.
The connector picks up the change within a minute — no restart needed.
2. Point a domain at it
- Open the DNS record or pull zone you want to serve.
- Under Origin Location, choose Private Tunnel.
- Select your tunnel and save.
Leave the origin address blank — the field disappears because there is nothing to enter. CDNShark works out the routing, and your server still receives the correct Host header for your domain.
Changing the port later
Edit the published service on the tunnel page and save. Do not delete and re-add it — editing applies the change straight away.
One service per tunnel
Each tunnel serves a single origin. If you need to publish a second application, create a second tunnel.