I want to know how it is possible to open simply a socket on a specific interface (eth0, wlan0, ...) in Node JS.
It seems to be possible in C and possible also with ping command with ping -I eth0 google.com
.
But how to do that with Node JS ? I have seen nothing in net.Socket documentation.
I have found some code that wrap dynamic library but there should be a easier way to do that. No ?
Something like socket.connect({host :"google.com", port:80, interface:"eth0"});