-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant run Client.js #5
Comments
npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
Seems to me like either the server is offline. Or the IP/Hostname is incorrect in the config file |
you talking about csgo gameserver config files ? or we copy in client and server config file ? |
[root@localhost server]# npm start
05:10:03.076 INFO [DATABASE] Ready! this is when i npm start in server folder i make (npm start%) for let it work in backround |
Yeah oke. But now we are talking about a public ip now. Are you sure the firewall settings are correct? And that port is open for clients to connect. As an example I would first try localhost or 127.0.0.1 to see if that works |
[root@localhost server]# (npm start&)
05:47:39.149 INFO [DATABASE] Ready!
Socket Server Matchmaking 5 passing (16s)
|
module.exports = { |
host was right 127.0.0.1 also i tried i dont know whats wrong? btw can u add this very simple front end ? no need look good just buttons if u add we can edit all that |
[root@localhost server]# firewall-cmd --permanent --add-port=3500/tcp |
when i run server.js its says i think i have problem in client side.. |
[root@localhost client]# npm start
12:18:41.717 INFO [SYSTEM] App running npm ERR! A complete log of this run can be found in: |
[root@localhost client]# node client.js
16:19:32.835 INFO [SYSTEM] App running
16:19:32.854 INFO [SOCKET] New client connected! ID: s0WzwRdGATxs2sO4AAAD
16:19:32.878 INFO [SOCKET] New client connected! ID: s0WzwRdGATxs2sO4AAAD
16:19:32.880 FATAL [SOCKET] Connection failed!
[root@localhost client]# 16:19:33.389 INFO [SOCKET] Client disconnected! ID: s0WzwRdGATxs2sO4AAAD
[root@localhost client]# node client.js
16:26:21.721 INFO [SYSTEM] App running
16:26:21.745 INFO [SOCKET] New client connected! ID: exY9LTuQRyZD0GZVAAAE
16:26:21.764 INFO [SOCKET] New client connected! ID: exY9LTuQRyZD0GZVAAAE
16:26:21.765 FATAL [SOCKET] Connection failed!
16:26:22.275 INFO [SOCKET] Client disconnected! ID: exY9LTuQRyZD0GZVAAAE
[root@localhost client]#
The text was updated successfully, but these errors were encountered: