Answer the question
In order to leave comments, you need to log in
How to force nodejs to use a specific IP?
Hello, there are:
1) Dedik with a pack of addresses (0-64);
2) NodeJS application for working with a third-party application via socket communication;
The question is the following, the application uses the wrong IP that is required, that is, requests are sent to a third-party application from the wrong IP from which it would be required.
Is there any way to force a nodejs application to use a specific address that is available on the server?
Answer the question
In order to leave comments, you need to log in
this is a connection function - socket.connect(options[, connectListener])
this is a connection parameter - options.localAddress
You can wrap packages with iptables.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question