I am developing/testing an application locally. What is the easiest way to expose my webhook endpoint to the public?
I use Ngrok for this
u/LemonAncient1950, do you know if the URL stays the same when you restart a server?
By default, you get a random sub-domain, but you can add reserved sub-domains to your account and reference them when you run Ngrok. For example, say you have an API running locally in port 3000, you could run
ngrok http --domain=‘warm-lola-api.ngrok.io’ 3000
And access your API at `https://warm-lola-api.ngrok.io/some/webhook\`.
Note some of these features are probably not available for free. I use Ngrok at work, so I’m not really aware of the costs.
Cloudflare can do this for free
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/
Yeah, pay for ngrok
It’s pretty cheap
I used DevTunnels (https://github.com/microsoft/dev-tunnels) and it worked great!
The sibling comments are decent options. I use Tailscale for this.
One other option is using ssh to portforward something from a VPC like this
No, every free account gets one free static domain.
Source: https://ngrok.com/blog-post/free-static-domains-ngrok-users
Yes if you want to use your own branded domain name you have to pay for it, but you can use one of the ngrok domains and it will be reserved for you for free.
They even have ngrok.pizza now!
https://ngrok.com/blog-post/new-domains-global-network-launch
do you know if the URL stays the same when you restart a server?
Every free account gets one free static domain.
Source: https://ngrok.com/blog-post/free-static-domains-ngrok-users
If you want to use your own branded domain name you have to pay for it, but you can use one of the ngrok domains and it will be reserved for you for free.
They even have ngrok.pizza now!
https://ngrok.com/blog-post/new-domains-global-network-launch
Aha, that’s new in the last year
Ngrok is a great tool for this, easy to set up and use.
Winglang automatically allows you to expose your endpoints in the console publicly.
It uses ngrok in the background. But it works seamlessly with zero configuration.
(wing maintainer here) – actually we don’t use ngrok, we have a service that backs up this cool feature.
Some details here: https://www.winglang.io/docs/standard-library/cloud/endpoint
I’m part of the Wing team, and we have a video demonstrating how to tunnel a URL to the public. As someone in the comments mentioned no configuration is needed.
I have just gone through this! I ended up using [Localtunnel](https://github.com/localtunnel/localtunnel). Best free option letting you choose your domain name, which you probably want if testing webhooks
ngrok config add-authtoken your_token(dont_need_payment)
ngrok http 7035
read above , this is not true. wing maintainer said: actually we don’t use ngrok, we have a service that backs up this cool feature.
https://www.hooklistener.com/ can probably help ![]()