add udp stuff to index.js with automatically detect broadcast address