CDNShark Documentation

Tunnel

← Back to Documentation

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:

  • Schemehttp or https, whichever your application speaks locally.
  • Port — the port it listens on, for example 80 or 3000.
  • Private host or IP — the address as seen from the machine running the connector. Use 127.0.0.1 if the application runs on that same machine, or a private IP such as 10.0.0.5 if 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

  1. Open the DNS record or pull zone you want to serve.
  2. Under Origin Location, choose Private Tunnel.
  3. 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.