Scenario: I had the idea of creating a simple quiz game for me and my housemates, which would be hosted as an HTML5 export on my remote server. This server is just an old PC of mine and thus I thought of making one of the players, that downloaded the game over their browser, the game server itself, so that this player has one server instance running and in parallel the normal game client to play. In the next step there would be some sort of network discovery to find this running instance at the other clients.
Goal: Decentralised hosts for LAN multiplayer in HTML5 exports.
Question: Can I run a server over one of the implemented network protocols of the engine or is there some restriction of the browser to disallow creating servers for security reasons?
Additional: WebsocketServers are noted to not work within HTML5, but why is this?
Thanks for your help,