Lurkars / ghs-server

Server component for Gloomhaven Secretariat
https://gloomhaven-secretariat.de
GNU Affero General Public License v3.0
41 stars 15 forks source link

connection closed error #22

Closed ronderksen closed 11 months ago

ronderksen commented 11 months ago

Not sure if this is a too specific problem: I'm using Cloudflare to have an SSL connection to the server that I'm running on my NAS. This seems to work, if I open the client (hosted by the server) on the https url, it works. However, when I then try to create a server connection (my custom CF hosted domain, port 443), the connection is immediately closed.

I also have a HTTP setup that does work (mostly). I can see that there the websocket connection to the server is setup properly and data is being sent and received. I've noticed that on gloomhaven-secretariat.de a different port (8443) is used for the server connection.

Can it be that I need to make sure that the GHS server also uses a certificate so that it has a secure connection?

ronderksen commented 11 months ago

I think I fixed it, I added a separate port forwarding rule on my router to be able to use that for the server connection.