Skip to content

Exposing MiroTalk SFU with Ngrok

ngrok

To make MiroTalk accessible from outside your local PC via HTTPS using Ngrok, follow these steps:

Step 1: Configure Ngrok and IP Address

Open the app/src/config.js file and update the following settings:

JavaScript
ngrokAuthToken: 'YourNgrokAuthToken', // Paste your Ngrok Auth Token here

announcedAddress: 'Your-Public-Static-IPv4-here', // Obtain from [ipify.org](https://api.ipify.org). Leave empty ('') for auto-detection.

Step 2: Router Port Forwarding

Configure port forwarding on your router as follows:

Name Protocol Port Wan Port Lan IP Destination
MiroTalkSfu TCP/UDP 40000:40100 40000:40100 Your Local IPv4
MiroTalkSfu TCP 3010 3010 Your Local IPv4

Ensure that your firewall is not blocking the range of RTC ports with the range 40000:40100.

Step 3: Run MiroTalk

Start MiroTalk with npm start. You will see a line in the console log similar to this:

Bash
server_tunnel: 'https://xxxxxxxxxxxxxxxxxx.ngrok.io'

Step 4: Access MiroTalk

Open the provided URL in your web browser. Now, you can join a room, share the link with others, and wait for participants to join.