Ngrok-multi-tunnel

Introduction

Hi , this short tips about how to use multiple tunnels in one command

Step 1 :

Download NGROK from https://ngrok.com/

Step 2 :

Register your account and login to ngrok dashboard

Step 3 :

 Copy Authentication token from your dashboard and paste your terminal to configure ngrok

Step 4 :

Now open configuration file
  • For linux
  • ~/home/user/.ngrok2/filename.yml

  • For Windows
  • C:/Users/username/.ngrok2/filename.yml

Step 5 :

Open filename.yml file in any editor and copy paste Step6

Step 6 :

authentoken:<your-auth-token>
tunnels:
  web:
      addr: 80
      proto: http
  file:
      addr: 4545
      proto: tcp
Tips: here you can change the port in TCP and HTTP what you want

Step 7 :

Now save the file and close

Step 8 :

Open terminal or cmd and type step 9

Step 9 :

  • For linux
  • ./ngrok start --all or ngrok start --all

  • For windows
  • ngrok.exe start --all

Step 10 :

Now you can see TCP and HTTP tunnels Works in same time