I bought and setup an SSL for my server. lets say it is at server.game.com. If I go to https://server.game.com:8843 it loads the page with the following content showing a secured sign on the browser which means that the ssl is indeed installed
Code: Select all
{ SFS2X Websocket Index Page }
If I run the game in Editor while in WebGL build mode with host=server.game.com, port=8843 the game loads just fine. however when I build the webgl version, and then load it in a browser, it gives me this error when connecting to server
Code: Select all
[SFS - ERROR] Failed to lookup hostname server.game.com. Connection failed. Reason No such host is known
Interesting thing is, if instead of the domain name I use direct ip of the server the webgl build works just fine. However since my ssl is against domain not IP, I manually need to open a tab with address https://ip-address:8843 to confirm security exception due to SSL issue. Without this step of course the game didn't connect.
So what should I do now? Cleary connecting via ip is not a solution, since I can't ask my users to manually open a page and accept security exception. But domain name is not working either even though ssl is installed correctly. Have you tried connecting with domain name directly rather than ip address? Does it really work? Or should I get ssl against my IP instead of domain. I am not sure if It is possible to get ssl against IP due to some other issue. But if it is the only way, then I would have to find a way to make it happen. But I would really prefer if I can connect via domain name instead.
Please let me know your experience and advice.
Thanks