When I open multiple browsers and connect to my game, I can see all instances of myself. But when I send the game to a friend and ask them to join the same room, we can't see each other. Why is that?
My game uses peer to peer connection to facilitate communication between multiple users through a web browser. My app works by connecting the user to a signalling server which helps peers find each other and puts them into a "room". One peer is made the host, and the host acts like the server for the other users.
Currently, my app works perfectly when I open multiple browsers on the same computer and establish connection that way. The problem arises when I try to connect with different computers. The computers "see" each other and know that there is a connection to another peer, but they can't send each other information. And after a short time, one or more of the peers will lose connection to the host.
I'm 99% sure the issue is not in my code because when I uploaded Construct's demo code for multiplayer, it gave me the exact same problem and also starts to kick the other players. I suspect the issue lies somewhere in my server settings, but I don't know anything about how that works and would really appreciate some pointers! I currently use HostGator to host my Construct HTML5 files.
Notice in my screenshot, I (char) have joined. It recognizes that Alvin is the host, but his name does not appear in the Player List.