Closed chopin closed 4 months ago
Trystero uses the Web Crypto API, which requires a secure context. What that means is that it will only work under localhost
or https
URLs. If you're on an IP URL, it's probably http
and not https
. So, you'll need to update your project to be served from a https
URL.
Thanks for your response. I found a related issue posted before. It explains how to get SSL certificate in local device: https://github.com/dmotz/trystero/issues/20#issuecomment-1204001712
Hi again,
I integrated Trystero for the first time. I saw that joinRoom() and room.onPeerJoin() worked fine when accessing by localhost.
But Trystero fail when I access by ip address not localhost. Following is the error message:
I found the corresponding line at debugger around at line 23 in trystero-torrent.min.js:
I really appreciate your help. Thanks in advance.