Is it a best practice to create a different Cloudflare Tunnel per machine?

For example, I have Laptop A and Laptop B. I use the Cloudflare Tunnels GUI to create a new tunnel on Laptop A. I then want to setup Laptop B in a similar manner. Should I create a new Tunnel or use the sudo cloudflared service install XXX to connect Laptop B to the same network as Laptop A?

And does the recommended change in Laptop A vs. B are on different local networks?

What are you trying to achieve? Do you want to connect from laptop A to laptop B (one direction only), or laptop A and B needs to connect to each other (both directions)?

Oh woops, forget to say that!

Imagine both Laptop A and B (on different local networks) have the same Express.js (or any server really) running on http://localhost:3000. I want that url to be accessible at`. I’ve successfully setup Laptop A to do just that - the question is does Laptop B need a different tunnel, or can it essentially reuse the same one?

Are you expecting the same hostname for both Express.js servers on both laptops or do you want to access different Express.js servers via different hostname?

If it’s the former, you may utilize the same tunnel, so when tunnels on both laptops are up that are reachable by the hostname, Cloudflare will randomly forward the request to any available tunnel connections that are established. If it’s the latter, then you should create different tunnel for another hostname.

1 Like

Ah, very helpful - thanks for the response!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.