Ngrok: Can't establish ngrok tunnel

Created on 22 Mar 2014  Â·  18Comments  Â·  Source: inconshreveable/ngrok

I am using Ubuntu 12.04. I installed ngrok but when I try to create a tunnel I get the following error:

Invalid address server_addr 'ngrokd.ngrok.com:443': lookup ngrokd.ngrok.com.: no DNS servers

It appears that it can't find ngrokd.ngrok.com, however I can ping that server and receive a response just fine. I've looked on Google for the error, but don't find anyone who has documented it. I'd like to get ngrok to work (I donated some $ to it), but can't seem to get beyond this point. I'm trying to use the -authtoken with it, but even without it I get the same error.

Most helpful comment

Link is not working any more and i really need this build..am on ubuntu 32bit

All 18 comments

My hunch is it's because on some platforms, ngrok doesn't use the native resolver because it's cross compiled. This can cause problems when you're on networks that require specific DNS settings. What operating system and architecture are you running on?

On Mar 22, 2014, at 6:22 AM, profgeek [email protected] wrote:

I am using Ubuntu 12.04. I installed ngrok but when I try to create a tunnel I get the following error:

Invalid address server_addr 'ngrokd.ngrok.com:443': lookup ngrokd.ngrok.com.: no DNS servers

It appears that it can't find ngrokd.ngrok.com, however I can ping that server and receive a response just fine. I've looked on Google for the error, but don't find anyone who has documented it. I'd like to get ngrok to work (I donated some $ to it), but can't seem to get beyond this point. I'm trying to use the -authtoken with it, but even without it I get the same error.

—
Reply to this email directly or view it on GitHub.

It's a Dell PowerEdge T105 server running Ubuntu 12.04 (32-bit). The install of Ubuntu is server and very generic (I didn't do much to it after installing). It does have a static IP on the LAN and static DNS servers.

64-bit or 32-bit?

As I mentioned above, I'm running Ubuntu 12.04 32-bit.

This is a natively-build ngrok for linux 386 so it should use your system's resolver properly. Let me know if it works: https://dl.ngrok.com/linux_386/530e9e1b6f8ff70763756a67445715438e800c63/ngrok.zip

I tried that and it got me past my previous error. Now it seems to run, but gives this error when I try to do a "ngrok -authtoken ..." command:

panic: Error reading asset assets/client/tls/ngrokroot.crt at /home/vagrant/ngrok/assets/client/tls/ngrokroot.crt: open /home/vagrant/ngrok/assets/client/tls/ngrokroot.crt: no such file or directory

So it seems that the resolver is working, but it still can't complete the tunnel due to the above error. Was there some part of installation I missed? I just unzipped per the instructions and I put the unzipped file in an /opt/ngrok directory.

Oops. I forgot to make a release build for you. I've updated the build. Try re-downloading and it all should work. Sorry!

The latest build worked great on my system. I tested it all and it all works fine. Thanks for the assistance with it. One last question: If I want to discontinue a tunnel, what's the easiest way to close it? I didn't see anything in help for closing a tunnel. Thanks.

Your tunnel will close whenever you close the ngrok client. (Ctl+C)

On Mar 24, 2014, at 2:39 PM, profgeek [email protected] wrote:

The latest build worked great on my system. I tested it all and it all works fine. Thanks for the assistance with it. One last question: If I want to discontinue a tunnel, what's the easiest way to close it? I didn't see anything in help for closing a tunnel. Thanks.

—
Reply to this email directly or view it on GitHub.

Thanks, this version help me too with the same problem!

Glad to hear it. I'll make sure that all future versions of ngrok are built this way to get around this issue.

I am having the panic: Error reading asset assets/client/tls/ngrokroot.crt error.
I followed the guide to host ngrok on my own server, I am using Ubuntu on my server, and when I make the client for windows like GOOS=windows GOARCH=386 make release then in bin/windows_386 I can see ngrok.exe created. I ssh this file on my windows machine, and when I try to run it I get the above error.

Any ideas what might be causing this?
Following is the console output from Ubuntu:

root@myserver:~/ngrok# GOOS=windows GOARCH=386 make release-client
bin/go-bindata -nomemcopy -pkg=assets -tags=release \
    -debug=false \
    -o=src/ngrok/client/assets/assets_release.go \
    assets/client/...
bin/go-bindata -nomemcopy -pkg=assets -tags=release \
    -debug=false \
    -o=src/ngrok/server/assets/assets_release.go \
    assets/server/...
go get -tags 'release' -d -v ngrok/...
go install -tags 'release' ngrok/main/ngrok
root@myserver:~/ngrok# cd bin
root@myserver:~/ngrok/bin# cd windows_386/
root@myserver:~/ngrok/bin/windows_386# ls
ngrok.exe

The error from windows console is

E:\tmp>ngrok 80
panic: Asset assets/client/tls/ngrokroot.crt can't read by error:
Error reading asset assets/client/tls/ngrokroot.crt at
 /root/ngrok/assets/client/tls/ngrokroot.crt:
open /root/ngrok/assets/client/tls/ngrokroot.crt:
The system cannot find the path specified.

goroutine 16 [running]:
runtime.panic(0x7047a0, 0x12b285b0)
        /usr/lib/go/src/pkg/runtime/panic.c:279 +0xe9
ngrok/client.newClientModel(0x12b08c40, 0x320598, 0x12b06de0, 0x320598)
        /root/ngrok/src/ngrok/client/model.go:110 +0x5e6
ngrok/client.(*Controller).SetupModel(0x12b06de0, 0x12b08c40, 0x9fbe1f14)
        /root/ngrok/src/ngrok/client/controller.go:134 +0x56
ngrok/client.(*Controller).Run(0x12b06de0, 0x12b08c40)
        /root/ngrok/src/ngrok/client/controller.go:150 +0x96
ngrok/client.Main()
        /root/ngrok/src/ngrok/client/main.go:51 +0x1dd
main.main()
        /root/ngrok/src/ngrok/main/ngrok/ngrok.go:8 +0x21

I believe I might be building it incorrectly?

Are you sure you need 386 and not amd_64 as you arch?

my bad, using arch as amd_64 fixes the problem, thanks

Your welcome.

Link is not working any more and i really need this build..am on ubuntu 32bit

I'm having the same issues as ProfGeek

Invalid address server_addr 'ngrokd.ngrok.com:443'

I'm running Ubuntu 16.04 LTS.

happened to me too at Ubuntu 16.04 LTS.
ive updated to ngrok 2.3.34 : https://ngrok.com/download
ngrok http 80 works like a rocket

Was this page helpful?
0 / 5 - 0 ratings

Related issues

owlstack picture owlstack  Â·  5Comments

christhesoul picture christhesoul  Â·  7Comments

jabooth picture jabooth  Â·  5Comments

asukiaaa picture asukiaaa  Â·  5Comments

alexforever86 picture alexforever86  Â·  5Comments