Configure Argo Tunnel(s) to two separate ports

I am looking to setup a tunnel to two separate localhost applications on separate ports:

App 1: http://localhost:5000
App 2: http://localhost:5001

The documentation here states that you can setup different CNAMES to point to a single tunnel origin - https://developers.cloudflare.com/argo-tunnel/reference/multiple-hostnames/ - however, is it possible for each CNAME to target a specific port?

Ngrok - provides functionality to run multiple tunnels at once which allows you turn target separate ports - https://ngrok.com/docs#multiple-tunnels

Is the same possible with Cloudflare Argo?

Hi,

Thank you for writing in regarding using Argo Tunnel with two different ports. This can be done by using two instances of cloudflared, each pointing to a separate port. Configuring this will depend on your OS.

Developer documentation for Argo is available here: https://developers.cloudflare.com/argo-tunnel/quickstart

Sincerely,

Cloudflare Community Support

1 Like