Tunnel Setup

This page contains information on tunnel setup.

There are different tunnel applications. Most popular ones are NGROK, PageKite, and Cloudflare Tunnel.

In this document NGROK will be briefly explained.

NGROK Installation

In your browser, download the NGROK version suitable for your operating system from https://ngrok.com, download and open (run) the downloaded program. Then log in to your account on https://ngrok.com. In the Setup & Installation section, copy the line containing the authtoken information.

NGROK Setup

  • In the executed NGROK program, type “ngrok http 3978 --host-header="localhost:3978"” into the command line. Default application port is 3978.

NGROK Tunnel Command
  • From terminal or ngrok.exe file, write the command written above. And below screen will be shown on terminal.

NGROK Tunnel View
  • From the Forwarding section, copy the link starting with HTTPS.

New Developer
  • After copying the HTTPS link of your tunnel url (in this case NGROK), go to Assistant/Developer Settings menu. Add your phone number without "+" and your ngrok url with /api/whatsapp endpoint at the end as shown above.

  • This process is crucial for you to get your messages that you are sending from whatsapp to arrive at the project running on your localhost. (http://localhost:3978)

Last updated