I want to force my node js app to download through a specific interface or IP address.
In Linux with wget I can do this with something like this:
wget --bind-address=192.168.21.21 http://example.com
or similarly with curl:
curl --interface 192.168.21.21 --ipv4 http://example.com
I am currently using the request package but I can't see a similar option and could change from this if I had to.
How can I bind my download to an IP address or interface with node js request?
Edit: I have seen the questions in the comments but they don't seem to address my question of how to do this in request and I am not using expressjs as my app doesn't have a server/web presence.