Turns out that the method using ENetMultiplayerPeer (previously shown) does not work on the web, making it insuficient, what does work however is WebRTC which requires a plugin (just copy webrtc/ to the project) to work on all platforms. There is also a long guide on how to use it.

As you cN probably tell, most of what I build involves web technologies and can be played on a browser so I had to follow this new avenue.