miroslavpejic85 / mirotalkc2c

✨WebRTC - C2C - Real-time cam-2-cam video calls & screen sharing, end-to-end encrypted, to embed in any website with a simple iframe.
https://c2c.mirotalk.com
GNU Affero General Public License v3.0
232 stars 57 forks source link

ngrok use on raspberry pi #13

Closed zoldaten closed 10 months ago

zoldaten commented 10 months ago

hi ! u tried ngrok to access local raspberry pi with grey IP. i seems connection established Screenshot_8 but i do not see any video-audio of a client. I see only myself in mirotalkc2c.

In local net - everything is OK.

to check this out: i followed steps https://docs.mirotalk.com/mirotalk-c2c/ngrok/ but got start it working like follows:

start ngrok:
ngrok http https://localhost:8080

in ~/mirotalkc2c
npm start 

start browser
libcamerify firefox -new-window https://localhost:8080/join?room=test&name=a

what is going wrong ?

miroslavpejic85 commented 10 months ago

Hello @zoldaten,

Here's the revised set of instructions, as MiroTalk C2C handles Ngrok service internally:

  1. Go to https://ngrok.com.
  2. Sign up for a free account.
  3. Copy your Ngrok Auth Token from https://dashboard.ngrok.com/get-started/your-authtoken.
  4. Open the .env file in your MiroTalk C2C installation.
  5. Add the following lines to the file:
NGROK_ENABLED=true
NGROK_AUTH_TOKEN=YourNgrokAuthToken

Replace YourNgrokAuthToken with the token you copied.

  1. Restart MiroTalk C2C. It automatically handles Ngrok service internally.

  2. In the console log, find the three new URLs:

[2023-12-17 19:01:41.072] [server] settings {
  // ...
  ngrokHome: 'https://xxxx-xxx-xxx-xx-xxx.ngrok-free.app',
  ngrokRoom: 'https://xxxx-xxx-xxx-xx-xxx.ngrok-free.app/?room=test',
  ngrokJoin: 'https://xxxx-xxx-xxx-xx-xxx.ngrok-free.app/join?room=test&name=test',
  //...
}
  1. Share the desired URL outside to make your MiroTalk C2C reachable by anyone. MiroTalk C2C handles Ngrok service internally for you.

For help, support, or questions, please use our community forum instead of opening issues here, as this platform is mainly for reporting confirmed bugs.

Thank you!