Reading and setting netwrk parameters in Node.js