Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question WebGL build on unity play can not connect to DGS

Discussion in 'Netcode for GameObjects' started by JamesW940516, Oct 26, 2023.

  1. JamesW940516

    JamesW940516

    Joined:
    May 19, 2023
    Posts:
    31
    Hello
    Hope you are doing well
    My netcode is working well WebGL client build with Dedicated Server Build in my local
    When I upload the webgl build to play.unity.com, the client webgl build can not connect to DGS
    Is this related with security, port, wss ... or sth? Here are some settings for me game

    upload_2023-10-26_1-46-27.png

    This is network Manager setting

    upload_2023-10-26_1-48-10.png

    This is working well

    upload_2023-10-26_1-48-31.png

    this is not working

    ---------------------------

    Please somebody help me

    1) [Use Encryption] should be enabled?
    2) I use 443 and 80 for test purpose, now. Is that correct? Should I use another random port when I make production build?