HTML5 export of Bomberman multiplayer sample. IP to use??

artieartie Posts: 3Member

Trying the HTML5 export of the bomberman game...

Shouldn't the IPs used for connection between players ... be identical to IPs that work for the Android export? on the same LAN.

Once the code is downloaded from server, and running in the local browser, the IP "landscape" should be the same, no?

But I can't get that working: no connection is found using the same IP. Is that an issue with browser security somehow?

Comments

  • shayneoneillshayneoneill Posts: 2Member
    edited July 29

    Its not going to work I'm afraid. HTML has pretty strict security policies around socket connections between peers. You need a server-client infrastructure thats written to take advantage of websockets (which are not the same as regular sockets, they have a bunch of headers and other features). You CANT talk across browsers, and thats by design to stop malicious web pages scanning and breaking into your network via the browser.

    Look at it this way. The majority of people never change the passwords on their router. If a browser allowed unhindered TCP socket access, a hacker simply has to write a webpage that does a quick TCP-Traceroute to find the first hop and thus the router, hit the router with a small database of known admin passwords for popular routers, then it can get in , and open up the network for more powerful hacking tools to enter your network and start pwning all your machines, take over your cameras, unlock your smartdoor, siphon your bank cards, and any number of other nefarious deeds. Its an insanely bad idea.

Sign In or Register to comment.