[4.8] HTML5 multiplayer connect

Hmmm after many hours of tweaking various things, it now works -_-. If I am able to figure out which fix it was that I did that made it start working, I will post the answer here for the people of the future.