Proxy Error During Client Connection

10 May 2020, 08:32

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?
0_1589099490424_proxy.png

12 May 2020, 01:59

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});
});