-
Notifications
You must be signed in to change notification settings - Fork 826
Listen to two ports #79
Comments
Probably have apache or nginx running. :x |
No. Running 443 works fine, 1337 one on other hand isn't .. worked fine on windows |
What's the output for: netstat -tulpn | grep 1337 |
Nothing. |
[root@centos-agar src]# netstat -tulpn | grep 443 |
So 443 is already in use. pkill node then try running it again. |
dude i said 1337 dont work, but 443 works lol |
How is it listening when it errors with Error: listen EADDRINUSE When that occurs it kills it self. You're not telling me everything. |
I already explained the issue, listening to another port at once doesn't work. I assume it's because the stats server are listening on port 88. |
... Do me a favour and set your game port to 1501 and stats port to 1601. You might not have so much issues -_- |
to be honest i didnt even know there was any stats port lol i guess if thats in the config.. then my issue is solved |
Yes, there's a stats port. |
does it not contain like top players etc? |
One of my servers: http://i.imgur.com/Ik4ib99.png |
Is your issue fixed? |
yes |
Press the close button ;) |
I changed port on linux one to 443 and another one to 1337, for some reason I can't listen to another port while running another ogar..
[root@centos-agar src]# node index.js
[Game] Ogar - An open source Agar.io server implementation
Error: listen EADDRINUSE
at errnoException (net.js:905:11)
at Server._listen2 (net.js:1043:14)
at listen (net.js:1065:10)
at Server.listen (net.js:1139:5)
at GameServer.startStatsServer (/home/admin/HackForums/Ogar/src/GameServer.js:919:21)
at GameServer.start (/home/admin/HackForums/Ogar/src/GameServer.js:206:10)
at Object. (/home/admin/HackForums/Ogar/src/index.js:25:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
[Error] Server could not bind to port! Please close out of Skype or change 'serverPort' in gameserver.ini to a different number.
The text was updated successfully, but these errors were encountered: