How To setup ngrok on Ubuntu

Опубликовано: 20 Февраль 2023
на канале: Linux For Life
1,619
9

To setup ngrok on Ubuntu, follow the steps below:

Download ngrok from the official website: https://ngrok.com/download

Extract the downloaded zip file to a directory of your choice.

Open a terminal and navigate to the directory where ngrok is extracted.

Make ngrok executable by running the command:
chmod +x ngrok
Authenticate ngrok by signing up for a free account on the ngrok website: https://dashboard.ngrok.com/signup

After signing up, copy your ngrok auth token from the ngrok dashboard.

In the terminal, run the command:
./ngrok authtoken your_auth_token

Replace your_auth_token with the auth token you copied in the previous step.

Start a new HTTP tunnel by running the command:
./ngrok http port
Replace port with the port number of the web server you want to expose.

For example, if you want to expose a web server running on port 8080, the command would be:

bash
Copy code
./ngrok http 8080
Ngrok will generate a public URL that you can use to access your local web server from anywhere. You can find the URL under the "Forwarding" section of the ngrok console.

That's it! You have successfully set up ngrok on Ubuntu.


Смотрите видео How To setup ngrok on Ubuntu онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Linux For Life 20 Февраль 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,619 раз и оно понравилось 9 людям.