title: Node : how to set static port to udp client in node js
body: <p>I am very new to Udp Socket programming, here i implemented echo UDP Client which connects to UDP server </p>
  
  <pre><code>var buffer = require('buffer');
  var udp = require('dgram');
  // creating a client socket
  var client = udp.createSocket('udp4');
  
  //buffer msg
  var data = Buffer.from('Pradip Shinde');
  
  client.on('message',function(msg,info){
    console.log('Data received from server : ' + msg.toString());
    console.log('Received %d bytes from %s:%d\n',msg.length, info.address, info.port);
  });
  
  //sending msg
  client.send(data,9300,'192.168.1.187',function(error){
    if(error){
      client.close();
    }else{
      console.log('Data sent from client!!!');
    }
  }); 
  </code></pre>
  
  <p>when this client send msg to server, operating system assign the random port to this client but in my scenario i want static port which will never change, is it possible to assign static port to udp client?</p>