miroslavpejic85 / mirotalk

🚀 WebRTC - P2P - Simple, Secure, Fast Real-Time Video Conferences Up to 4k and 60fps, compatible with all browsers and platforms.
https://p2p.mirotalk.com
GNU Affero General Public License v3.0
2.6k stars 502 forks source link

Stuck at loading page in LAN using. #218

Closed Handsome1080P closed 2 months ago

Handsome1080P commented 2 months ago

deployed by docker,and set no turn server and others.lan use only.already set host ip address. logs below:

[2/29/2024, 19:51:53:597] [server] Server config {
  iceServers: [],
  stats: {
    enabled: false,
    src: 'https://stats.mirotalk.com/script.js',
    id: 'c7615aa7-ceec-464a-baba-54cb605d7261'
  },
  host: {
    protected: false,
    user_auth: false,
    users: [
      { username: 'username', password: 'password' },
      { username: 'username2', password: 'password2' }
    ],
    authenticated: true
  },
  jwtCfg: { JWT_KEY: 'mirotalkp2p_jwt_secret', JWT_EXP: '1h' },
  presenters: [ 'JohnConnor', 'xxxxxx@gmail.com' ],
  ip_whitelist: { enabled: false, allowed: [ '127.0.0.1', '::1' ] },
  ngrok: { ngrok_enabled: false, ngrok_token: '' },
  server: 'http://192.168.254.254:3000',
  cors: { origin: '*', methods: [ 'GET', 'POST' ] },
  server_tunnel: false,
  test_ice_servers: 'http://192.168.254.254:3000/test',
  api_docs: 'http://192.168.254.254:3000/api/v1/docs',
  api_key_secret: '634218',
  use_self_signed_certificate: false,
  turn_enabled: false,
  ip_lookup_enabled: false,
  chatGPT_enabled: false,
  slack_enabled: false,
  sentry_enabled: false,
  survey_enabled: false,
  redirect_enabled: false,
  survey_url: 'https://www.questionpro.com/t/AUs7VZq00L',
  redirect_url: 'https://p2p.mirotalk.com',
  node_version: '18.19.1',
  app_version: '1.2.94'
}
[2/29/2024, 19:52:11:130] [server] New request: { body: {}, method: 'GET', path: '/' } +17s
[2/29/2024, 19:52:11:163] [server] New request: { body: {}, method: 'GET', path: '/stats' } +33ms
[2/29/2024, 19:52:13:339] [server] New request: { body: {}, method: 'GET', path: '/join/86784TinyPhoto' } +2s
[2/29/2024, 19:52:14:039] [server] [FuxO8UPKmMmtv--aAAAB] connection accepted {
  host: '192.168.254.254',
  time: 'Thu Feb 29 2024 19:52:14 GMT+0800 (Hong Kong Standard Time)'
} +697ms
[2/29/2024, 19:52:14:040] [server] [FuxO8UPKmMmtv--aAAAB] Connection transport 'websocket' +0ms

and client: image

Handsome1080P commented 2 months ago

.env

# Domain
HOST=192.168.254.254
miroslavpejic85 commented 2 months ago

Hello @Handsome1080P, Please kindly remember to use our forum help and support here rather than opening a GitHub issue 🙏

Here are the necessary adjustments for your .env file:

HTTPS=true                # Enable self-signed certificates
HOST=192.168......        # Your LAN IP address
STUN_SERVER_ENABLED=false # Not required for LAN network
TURN_SERVER_ENABLED=false # Not required for LAN network

In most modern web browsers, the getUserMedia API, which is used to access a user's camera and microphone, typically requires a secure HTTPS connection to function properly. This is due to security considerations to protect users' privacy and prevent unauthorized access to their devices. So you can utilize self-signed certificates to enable HTTPS and satisfy the security requirements for getUserMedia to function properly. (HTTPS=true).

For more questions regarding here.

The forum serves as an excellent platform for engaging with the community and seeking answers. Thank you!