dmotz / trystero

✨🤝✨ Build instant multiplayer webapps, no server required — Magic WebRTC matchmaking over BitTorrent, Nostr, MQTT, IPFS, Supabase, and Firebase
https://oxism.com/trystero
MIT License
1.33k stars 92 forks source link

supabase works local but not between different internet connections #89

Open TrusteroP2P opened 2 months ago

TrusteroP2P commented 2 months ago

Uncaught Error: Connection failed. at Ki._onConnectionStateChange (trystero-supabase.min.js:1) at RTCPeerConnection._pc.onconnectionstatechange (trystero-supabase.min.js:1)

This is the error it gets. Worked fine with two tabs connecting with appId and api key in config. But the second I try to connect with a different device such as a phone, it fails and both instances give this error.

I was able to connect the two devices using one of the "less reliable" methods although as its said they cut out for a while sometimes.

TrusteroP2P commented 1 month ago

actually I'm seeing this with other libraries as well just got it with nostr too, this just happens no matter what connection I try remotely. Its not even a reconnect like your prior filed issues, it just fails out the gate.

TrusteroP2P commented 1 month ago

Under further analysis, supplying config file didn't actually get used, instead had to edit the min javascript libraries and add it through a global variable. Seems it needed TURN but I still see that error anyways. Seems like most issues are related to webRTC and the almost deliberately difficultly ISPs put everyone through. Note: happened on an older version of open source chromium for windows 7 to replicate it.