kripken / BananaBread

BananaBread is a C++ 3D game engine that runs on the web using JavaScript+WebGL+HTML
1.38k stars 347 forks source link

Multiplayer does not work #40

Open testman42 opened 11 years ago

testman42 commented 11 years ago

When selecting level, I can see "rooms" where it says how many players are in there, but when I try to join, it loads the correct level but I get messages "Attempting to connect..." and "Could not connect to server" in top left corner of the screen.

Edit: Using latest Nightly UX

modeswitch commented 11 years ago

The webrtc broker was offline earlier today. Could you try it again?

testman42 commented 11 years ago

I tried quite a few times with no success. Browserquest is also HTML5 based multiplayer game and it works fine for me. I am using latest Nightly UX on 64 bit Linux. Should I have some special ports open on router to make multiplayer work?

cronos3k commented 11 years ago

Hello testman42

Browserquest is using Websockets and not WebRTC that is used in BananaBread. So it could be that it is a WebRTC problem.

Greetings

Gregor

On Wed, Nov 6, 2013 at 1:44 AM, testman42 notifications@github.com wrote:

I tried quite a few times with no success. Browserquest is also HTML5 based multiplayer game and it works fine for me. I am using latest Nightly UX on 64 bit Linux. Should I have some special ports open on router to make multiplayer work?

— Reply to this email directly or view it on GitHubhttps://github.com/kripken/BananaBread/issues/40#issuecomment-27828523 .

modeswitch commented 11 years ago

Could you make sure upnp is enabled on your router? WebRTC can do some kinds of NAT traversal, but there are still known cases where it doesn't work in some network configurations.