Issue with WebsocketMultiplayerPeer

Godot Version

v4.3.stable.official [77dcf97d8]

Question

I am trying to make a simple game, similar to the Jackbox Party Pack, I am using WebsocketMultiplayerPeer for networking and I have run into a weird networking issue.

There are 2ways that you can connect to the server:
localhost, and My Private IP address.

But for some reason, when using standalone, I can only connect using my private IP address, and when using web, I can only connect using localhost? It’s not a CORS issue because when visiting the website using my private IP, it still only works using localhost. When I check my browser console, it doesn’t even report an attempt to connect to a websocket server.

FIXED!

It turns out my browser of choice was failing silently.
When I tried using a different browser, an error appeared in the console when it didn’t before. Turns out, it doesn’t like to connect to insecure websockets on a secure page.

Firefox continues to refuse to connect, but that’s because my certificate is self signed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.