WebSocket connection Error in connection establishment: net::ERR_CONNECTION_CLOSED

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

moonlife
Posts: 45
Joined: 26 Sep 2016, 08:22

WebSocket connection Error in connection establishment: net::ERR_CONNECTION_CLOSED

Postby moonlife » 06 Mar 2021, 11:59

Hi,

I try to connect SmartFoxServer with Html5, it gives WebSocket connection to 'wss://my-domain:8443/BlueBox/websocket' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED

here is my config

Code: Select all

var config = {};
   config.host = "my-domain";
   config.port =8443;
          config.useSSL = true;
   config.zone = "xxx";
   config.debug = false;


I upload valid SSL certificate to SmartFoxServer admin tool and I'm trying to connect with https connection.

What should I do?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: WebSocket connection Error in connection establishment: net::ERR_CONNECTION_CLOSED

Postby Lapo » 06 Mar 2021, 14:14

Hi,
From the error you have reported it sounds like there are issues with the certificate: first of all I would double check that the certificate was deployed successfully.
Point your browser to https://my-domain:8443 and see if you get the green lock icon or any errors.

Let us know.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: WebSocket connection Error in connection establishment: net::ERR_CONNECTION_CLOSED

Postby Lapo » 06 Mar 2021, 14:18

One more thing:
moonlife wrote:I upload valid SSL certificate to SmartFoxServer admin tool and I'm trying to connect with https connection.

You need to restart the server to activate the certificate.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 35 guests