-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing a custom hostname while creating the ngrok instance programatically #258
Comments
What happens when you try to set up the tunnel like that? Is there an error? |
can confirm that hostname works for the whitelabel/CNAME option. just leave off subdomain |
running the following piece of code:
I get the following error:
I raised the issue because I also noticed that the types for |
Thanks @subhanahmed047, I'll take a look. |
my code that works in webpack devServer onListening is:
where hostname is my exact entry in ngrok of the form host.domain.net. i'm not sure why the local port is called addr, perhaps you can specify the interface as well as the port |
@subhanahmed047 Can you check if it works with a fully qualified hostname? |
I changed filed domain to hostname, it works. Thanks @mquinnv ! |
I'm trying to create a ngrok instance with a custom hostname, but It looks like the ngrok options object doesn't accept the hostname, so how do we create an instance that is using our custom domain rather than default ngrok.io?
Here is how I'm doing it:
The text was updated successfully, but these errors were encountered: