inconshreveable / ngrok

Unified ingress for developers
https://ngrok.com
Other
24.13k stars 4.26k forks source link

Ngrok 2.2.8 ARM doesn't work anymore on Linux armhf ( android device ) #441

Closed 0v3rfl00w closed 4 months ago

0v3rfl00w commented 7 years ago

Starting ngrok gives a warning and an error like this :

./ngrok WARN[08-13|11:05:39] failed to get home directory, using $HOME instead err="user: Current not implemented on linux/arm" $HOME=/data/data/com.termux/files/home NAME: ngrok - tunnel local ports to public URLs and inspect traffic

DESCRIPTION: ngrok exposes local networked services behinds NATs and firewalls to the public internet over a secure tunnel. Share local websites, build/test webhook consumers and self-host personal services. Detailed help for each command is available with 'ngrok help '. Open http://localhost:4040 for ngrok's web interface to inspect traffic.

EXAMPLES: ngrok http 80 # secure public URL for port 80 web server ngrok http -subdomain=baz 8080 # port 8080 available at baz.ngrok.io ngrok http foo.dev:80 # tunnel to host:port instead of localhost ngrok tcp 22 # tunnel arbitrary TCP traffic to port 22 ngrok tls -hostname=foo.com 443 # TLS traffic for foo.com to port 443 ngrok start foo bar baz # start tunnels from the configuration file

VERSION: 2.2.8

AUTHOR: inconshreveable - alan@ngrok.com

COMMANDS: authtoken save authtoken to configuration file credits prints author and licensing information http start an HTTP tunnel start start tunnels by name from the configuration file tcp start a TCP tunnel tls start a TLS tunnel update update ngrok to the latest version version print the version string help Shows a list of commands or help for one command

And when trying to connect i got this : screenshot_20170813-121135 What's the probleme here ? thanks For this beautiful software .

brunoecq commented 6 years ago

Did you resolve this? I have the same problem...

mpwrx commented 6 years ago

and me 🍰

khozinul26 commented 6 years ago

Jjk

fortune-max commented 6 years ago

What happens is ngrok tries to resolve a couple of addresses and connects to 127.0.0.1:53. This DNS server isn't listening if you use 3G/H+ (check with cmd "netstat -ant"). To enable the local DNS server and still use 3G/H+ turn on your hotspot.

Alternatively you could edit the /system/etc/hosts file if you have root and add the following lines so the DNS resolution isn't necessary (v 2.2.8) 216.58.223.206 dns.google.com 52.216.130.253 s3.amazonaws.com 52.15.79.231 tunnel.us.ngrok.com 54.173.32.212 update.equinox.io 127.0.0.1 localhost

Good luck

ilanstar commented 6 years ago

Is there a way to resolve this issue without root? I checked whether $PREFIX/etc/hosts may work but it doesn't

fortune-max commented 6 years ago

As I said above, simply turn on your mobile hotspot while using ngrok.

ilanstar commented 6 years ago

That indeed works, but it prohibits me from using WiFi. Is there a solution that keeps both WiFi and manages to properly resolve the addresses?

On Tue, Aug 7, 2018 at 9:29 PM, lordfme notifications@github.com wrote:

As I said above, simply turn on your mobile hotspot while using ngrok.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/inconshreveable/ngrok/issues/441#issuecomment-411155943, or mute the thread https://github.com/notifications/unsubscribe-auth/AnKYeGlzXkM1zRe1O7tUZVEVKBi76y3Cks5uOdyCgaJpZM4O1qOn .

oneo766 commented 5 years ago

I am feeling this problem... my phone is not rooted...

ghost commented 5 years ago

First turn off your wifi connection (if you turn on). Then turn on mobile data and mobile hostpot and type ./ngrok http 80 Problem solved ;-)

loveablefellow007 commented 4 years ago

DarkIShadow using mobile data and hotspot in same time fixed my issue bro.. Thaaaaaankkkkkxxxx bro.💯💯💯

ghost commented 4 years ago

You're welcome bro.. 🤗

On Sun, 10 Nov 2019, 10:10 loveablefellow007, notifications@github.com wrote:

DarkIShadow using mobile data and hotspot in same time fixed my issue bro.. Thaaaaaankkkkkxxxx bro.💯💯💯

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/inconshreveable/ngrok/issues/441?email_source=notifications&email_token=AKY23BGTBEBN4X2VHFSUCC3QS6GCNA5CNFSM4DWWUOT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDUVHWY#issuecomment-552162267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKY23BBJSGBE3B26KRMGNN3QS6GCNANCNFSM4DWWUOTQ .

SiddharthSingh0 commented 4 years ago

Thanks done nice solution

Expert-Hacker commented 4 years ago

I am facing this error ,even having strong inte IMG_20200430_195756 rnet and hotspot is on.. please help

greatidea1 commented 4 years ago

Does ngrok on android/termux not work on Wifi? My mobile data is limited and expensive

coarsehorse commented 4 years ago

What happens is ngrok tries to resolve a couple of addresses and connects to 127.0.0.1:53. This DNS server isn't listening if you use 3G/H+ (check with cmd "netstat -ant"). To enable the local DNS server and still use 3G/H+ turn on your hotspot.

Alternatively you could edit the /system/etc/hosts file if you have root and add the following lines so the DNS resolution isn't necessary (v 2.2.8) ips...

This is still the way, but ips are outdated, here is the new: 8.8.4.4 dns.google.com 52.216.176.229 s3.amazonaws.com 18.189.209.170 tunnel.us.ngrok.com 52.6.123.150 update.equinox.io At the moment I can use ngrok in Termux on Android 7.1 without cellular network + hotspot. But using Wi-Fi only. Note: wait a little bit, it starts to work after 30s+ delay

saurabh6017 commented 4 years ago

just use this file https://drive.google.com/file/d/15366TjwvIuD16oc9GoyEj61GOeDbym8o/view

prajwal-on-github commented 4 years ago

First turn off your wifi connection (if you turn on). Then turn on mobile data and mobile hostpot and type ./ngrok http 80 Problem solved ;-)

BlackAlpha0 thanks bro You solved my problem I opened github acc to only say thanks to You...ThankTou♥️

ghost commented 4 years ago

First turn off your wifi connection (if you turn on). Then turn on mobile data and mobile hostpot and type ./ngrok http 80 Problem solved ;-)

BlackAlpha0 thanks bro You solved my problem I opened github acc to only say thanks to You...ThankTou♥️ :3 💯

dinukasal commented 3 years ago

@saurabh6017 ngrok fixed one doesn't work

dedshit commented 3 years ago

I am facing this error ,even having strong inte IMG_20200430_195756 rnet and hotspot is on.. please help

why dont u use old version of that

Itslokani commented 2 years ago

Screenshot_20211109-181327 Can't start TCP server please help me please please

Allsafecybertech commented 2 years ago

Work fine, with mobile hotspot on

ThatMG393 commented 1 year ago

Use PRoot

sinhpn92 commented 9 months ago

Great solution to use mobile data and hotspot. But It is not the good solution. Have any suggest to solve it? I have same issue on my device Samsung galaxy s10+.

russorat commented 4 months ago

Thank you for opening this issue! As of April 2016, the ngrok service has permanently moved to https://ngrok.com/. To join the community and file bug reports or feature enhancements for the ngrok agent, please go to https://github.com/ngrok/ngrok.

This repository is no longer actively maintained and will be archived soon to reduce confusion with the latest ngrok versions. We thank you for the continued support of ngrok and look forward to seeing you over at ngrok.com and the ngrok Community Repo.