Pratik Solim
Pratik Solim

Reputation: 41

Error related to ngrok

I have recently installed ngrok version 1.6 on my ubuntu. While running command ngrok http 80

I am getting a following error.

You may only specify one port to tunnel to on the command line, got 2: [http 80]

Please tell me the solution to this problem.

Upvotes: 2

Views: 9655

Answers (4)

rahul
rahul

Reputation: 1243

You need to download zip file from https://ngrok.com/download Unzip it, You'll get a file called ngrok, goto that directory in command line and run ./ngrok http 80

Upvotes: 0

Latinbooker
Latinbooker

Reputation: 51

You need to use a relative path, such as.

./ngrok http 80

instead of

ngrok http 80

But for me it shows this:

./ngrok: file or directory doesn't exist

Upvotes: 5

Vishal Thakur
Vishal Thakur

Reputation: 1696

If you are Facing this following error:-

You may only specify one port to tunnel to on the command line, got 2: [http 80]

Than you need to Use this:- ./ngrok http 80 instead of ngrok http 80

Upvotes: 3

ttacon
ttacon

Reputation: 503

In ngrok 1.6 there was no extra param (http) to pass, the correct invocation for ngrok 1.6 would be ngrok 80. However, I'd suggest upgrading, ngrok 1.6 is fairly old (I'm running 2.1.3 for example).

Upvotes: 3

Related Questions