Answer the question
In order to leave comments, you need to log in
Is there a utility that can force a specific application to communicate on a specific network interface?
Are there any at all? Of course, you can write it yourself, but suddenly there are already ready ones. it doesn't work, because the search returns something similar, but not the same. And if so, there are no answers.
I have some web application. In a computer - 2 network cards (ie two network interfaces? everyone has, respectively, the IP). I want any network requests from this application to go from a specific network interface. If we were to write the program ourselves, it would look something like this:
bind(socket, &address, sizeof(address));
connect(socket, ...);
Answer the question
In order to leave comments, you need to log in
Run the second one in a virtual machine with a second network attached.
Of course there is, SocksCap and 3proxy immediately come to mind. The first can make the program work with a proxy, and the second - in fact, a proxy, and specify the desired network interface there)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question