Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    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. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    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