4

I have several network interfaces with various IP adresses. How can I make http requests to site through these IPs using node.js module request (https://github.com/mikeal/request) ?

1 Answer 1

3

In the nodejs http module, there is a localAddress option you can use with http.request().

localAddress: Local interface to bind for network connections.

I have not used the module you're referring, but if it's just passing through the options to the http module, I don't see a reason it shouldn't work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.