Monday, 13 March 2017

Perform request using specific network interface

Is it possible to perform GET/POST request in NodeJS using specific network interface?

I.e. with CURL I can invoke two POST calls like:

curl -X POST --interface wlan0 http://192.168.1.5/resource
curl -X POST --interface wlan1 http://192.168.1.5/resource
//                       ^^^^^

Both IP addresses are different machines - so first WiFi module is connected to one SSID, second is connected with a very different network, but the IPs are equal because of some top requirements (they lay in different, isolated networks).



via hsz

No comments:

Post a Comment