Skip to content
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

Is it possible for this to listen to a port of a local VM? #35

Open
iancullinane opened this issue Feb 26, 2019 · 2 comments
Open

Is it possible for this to listen to a port of a local VM? #35

iancullinane opened this issue Feb 26, 2019 · 2 comments

Comments

@iancullinane
Copy link

Currently I ngrok the local IP of a vagrant box, and the application port. Everything is fine.

I want to put ngrok in a container for security and I saw this. Is the --link flag required? I tried to run without it and use the command I always use (ngrok http 172.17..x.x:some-port) and it starts but the request doesn't go from local ngrok container to vagrant address. Not sure if this is already a use case and I am not understanding correctly, or if it would require more troubleshooting on my end.

@senorgeneral
Copy link

senorgeneral commented Feb 26, 2019

Currently I run an Ngrok Docker on Unraid pointing to the :32400 port on my Plex docker. All hosted on the same machine. You need to point to the IP of your VM as other machines in your network would access it. 192.168.... not the virtual network IPs of 172.....

No --link was required. Just NGROK_PORT and NGROK_AUTH. The key is to pass the IP and the Port at the same time to the NGROK_PORT variable.

Example:
NGROK_PORT = 192.168.2.22:32400

Otherwise you will only be sending localhost:32400 and it just doesn't work.

@bekkazy-k
Copy link

bekkazy-k commented Jan 27, 2022

docker run --rm -it wernight/ngrok ngrok http host.docker.internal:3000

https://docs.docker.com/desktop/mac/networking/#use-cases-and-workarounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants