Hacker News new | past | comments | ask | show | jobs | submit login
Cloudflare Tunnel – Generate a live updating URL to any localhost project (cloudflare.com)
84 points by zuhayeer 44 days ago | hide | past | favorite | 19 comments



I made a tunnel service that doesn't require account creation and is suitable for automated tools that need to spin up a web interface for non-routable networks. The hostname is derived from the public key used to authenticate your end of the tunnel:

https://github.com/mkmik/udig


> Tunnel IDs are base32 encoded hashes of the public key (technically a multihash encoded as a base32 multibase).

Wow very cool! Using a known value is a great thing, I can totally see using this.


That looks cool. What's the difference of your solution with standard VPN or SSH tunneling?


I tried to use this once and it was a mess, for some reason I had to go through multiple steps of creating and enabling tunnels, and in the end nothing worked.

Please try ngrok, it's soooo much easier.


It supports custom domain which is a paid feature in ngrok. So it's worth the trouble.


Something seems broken, I installed the latest version and it fails with this error:

    cloudflared tunnel --url http://localhost:8080
    failed to parse quick Tunnel ID: invalid UUID length: 0


Getting this too, seems like it's down. http://trycloudflare.com/ doesn't resolve to anything either.


I used this once to debug live with coworkers. Now I use it 100% of the time for local builds. Super useful when doing front end work and you want hot reloading across multiple clients & you don’t want to lose things like Cloudflare Workers or Page Rule effects.

Cloudflare for Teams makes it even more powerful where you create a tunnel to a local build & then restrict traffic on the subdomain to a specific G Suite group in your org (ie QA or Developement).


How is it better than configuring <randomstring>.mydomain.com to point to my home networks IP address and have my router forward those connections to my desktop ? I have a batch job than sets up a Route53 record using whatsmyip service when I am testing my app on my localhost and another batch job that deletes the dns record when my tesing is complete.


I'm guessing this is useful in situations where the home network is behind NAT and not routable, which is the case for a lot of ISPs.


this can also be useful in commercial dev when you have a random EC2 instance that you want to share with a nice URL.


Reminds me of this npm package called localtunnel. https://www.npmjs.com/package/localtunnel

Might check it out soon.


Super useful, fun, and easy for hosting your site at home on a raspberry pi!


Is there a npm package for this service? I ran into a situation where yesterday where I had to use localtunnel. I tried searching on npm but didn't find a package.


Why does it matter for you in what language is it written?


Used this to expose a nextcloud on my natted/dynamic IP address. Works like a charm.


there is https://smee.io/ if the only thing you want is webhook


Does it forward UDP ports as well?


So is this just for HTTP traffic?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: