A simple node script to demonstrate how to echo a UDP message using dgram
.
- Node.js v8+
This code is for demo (educational) purpose only! It is not production-ready, performance optimized or intended to be used as seed project. Use at your own risk
- Edit sourcecode to set server's IP address and port:
let PORT = 2222; // this will be server's port
let HOST = '0.0.0.0'; // bind to this host; set to 0.0.0.0 for all IPv4 addresses(gateways), or to a specific IP (local)
- Run file as node script
Made with ❤️ by the GarageLab Belgrade team using vscode ©️ 2019