owenashurst / agar.io-clone

Agar.io clone written with Socket.IO and HTML5 canvas
MIT License
2.89k stars 1.13k forks source link

Always "Game Over!" #346

Open NateBrune opened 8 years ago

NateBrune commented 8 years ago

I am trying to host this game (thank you by the way) on an intra-net named hyperboria (cjnds). That is pretty irrelevant though. It is an ipv6 network. Anywho, whenever I connect the game always says "Game Over!"

I get the listening on *:port message but it never says

"A user connected!"

when I connect. Can you help me figure out what's wrong?

NateBrune commented 8 years ago

IPV6 definitely seems to be the problem. I am having a tough time figuring out why though... :(

Kubuxu commented 8 years ago

It might be an issue with IPv6 and websockets. AFAIK newest version of websocket API works OK with IPv6.

yrahcaz commented 8 years ago

I'm experiencing this as well. From the LAN it works fine, but WAN causing players/clients to experience and instant game over screen and the server console to spam the message: "A user connected! player"

I also tried disabling ipv6 on my server as suggested by @NateBrune