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