Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello guys, when i configure my server first time everything was working well. But today I opened and tried connection and got this error. Anyone who has idea?
Hi, i suggest you to remove localhost from listen. gameServer.listen(PORT);
or:
import dns from 'dns'; import os from 'os';
dns.lookup(os.hostname(), (error, address, fam) => { gameServer.listen(PORT, address || 'localhost'); console.log(Running on ws://${address}:${PORT}); });
Running on ws://${address}:${PORT}