Hi!
I am trying to receive UDP messages in a NODE.JS application running on a LS425. With my code I receive a message of 'server listening 0.0.0.0:1234.
I'm trying to send messages from my computer on the same network to the player but nothing is logged in the DWS log. However, if I run a Network Packet capture in DWS, I can see the messages I send there.
Is there some additional setup to do in autorun.brs or elsewhere to get the messages through to the node app?
Here is the code I use to set up a dgram socket:
const server = dgram.createSocket('udp4');
server.on('error', (err) => {
console.error(`server error:\n${err.stack}`);
server.close();
});
server.on('message', (msg, rinfo) => {
console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
});
server.on('listening', () => {
const address = server.address();
console.log(`server listening ${address.address}:${address.port}`);
});
server.bind(1234);