OgarProject / Ogar

An open source Agar.io server implementation, written with Node.js.
Other
717 stars 825 forks source link

Unable to connect to local server ( http://agar.io/?ip=127.0.0.1:443 ) #702

Open harlos0517 opened 7 years ago

harlos0517 commented 7 years ago

What I've done: (all on Win 10, with latest npm and node version)

I tried to search through both the issues here and the Net but in vain. So there are actually two problems here:

  1. When trying to connect to server, in server command line

    TypeError: Cannot read property 'headers' of undefined
    at GameServer.connectionEstablished (D:\projects\Ogar\src\GameServer.js:219:35)

    where in GameServer.js var origin = ws.upgradeReq.headers.origin; P.S. A friend of mine tried the same method on Ubuntu 16.04 and showed the same error.

  2. (After simply remove the related code mentioned above) When trying to connect to server, it kept showing Connecting, but no error message in the server command line. P.S. Ubuntu 16.04 works fine (after removing the code).

I would appreciate it very much if anybody could help, because my team wants to use this in a student conference on June 11th.

freaky767 commented 7 years ago

I would not suggest using Ogar, as it is very obsolete. If you want a project, which is still worked on, and has many features, I shall suggest: https://github.com/Megabyte918/MultiOgar-Edited

freaky767 commented 7 years ago

I may add, MultiOgar-Edited also is compatible with the latest Agar.io Client.

Luka967 commented 7 years ago

^ this.

ialexsip commented 7 years ago

gameserver.js is at Ogar-master\src. Edit it with notepad++ and comment ( // ) from line 219 to 229

jaydenSPC commented 7 years ago

@freaky767 with multiogar when i control my minions and make them eject mass, everyone dies. why?