This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// port to listen to | |
var PORT = xxxxx; // Change to your port number | |
// x's should be replaced with your EC2 private ip | |
var HOST = 'ip-xxx-xx-xx-xxx.your-region.compute.internal'; | |
// Load datagram module | |
var dgram = require('dgram'); | |
// Create a new instance of dgram socket |