Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

WebGL build clients cant see Windows build host

Discussion in 'Connected Games' started by customphase, Nov 7, 2018.

  1. customphase


    Aug 19, 2012
    For some reason my WebGL build clients (hosted on my own site) cant seem to connect to Windows build host. This is what i get in browser's console:

    WebSocket connection to 'ws://server_external_ip:port/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
    Error: undefined socket will be closed

    My server writes its external ip to the database, and clients access that database and try to connect to that ip. Im using useWebSockets in client and host. I also have set up port forwarding correctly, checked it through, and it can see the port as open when the server is running. I also tried to write my own basic javascript websocket client and tried to connect to the server, and it wont connect either, so its not a client problem. Im using basic HLAPI, StartHost on the server and StartClient on the client. Does anybody know whats the problem here?
    Last edited: Nov 7, 2018