Multiplayer connection not working on WebGL in Unity Play

Hi guys,

I need some help on WebGL multiplayer on Unity Play. I’m wondering whether Unity Player may block some multiplayer features for web socket transport?

My team is building a 2D board game that supports multiplayer on WebGL. We planned to upload it to Unity Play. We have tested what we have so far, and the multiplayer mode works well when we test using Editor build and run for WebGL. However, when we test uploading to Unity Play, the multiplayer stops working. Here is a test upload of our game ParticleBuilder_WebGL_15Oct2024_4_45pm

The game freezes when clicking the multiplayer button which will try connecting to server. During this, on the server side, no new connection is made.

The game uses web socket transport for multiplayer.

I’m wondering whether Unity Player may block some multiplayer features?

edit:
adding some information:
Current server will only accept connection within the geological location of the institute my team is working for. This could be a potential cause. What location will the Unity Play game running on user’s device be? Is it same as user’s location or will it be treated as somewhere else?

1 Like

Your code, please. :wink:

Did you check the browser console for error messages?

The user’s device location I suppose. Unless you use relay which you needn’t if you connect directly to a server.

Check the firewall logs for incoming connection attempts. Or for positive testing, host a server outside the institute’s network. If that works it’s likely an issue with the firewall / proxy / routing of the Intranet.

I can assure you webgl does work.

So you need to ask yourself why is it not working. So. For example webgl cannot be a server, so where is your server? Did you need to open firewall ports or are you using relay?

Hey illufore, did you ever get this working?