M
M
Mingun2014-01-14 10:17:15
Computer networks
Mingun, 2014-01-14 10:17:15

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, ...);

The problem is that the program is someone else's and we don't have the codes. And even if there were, it would be too lazy to recompile :).
Is there some utility that could intercept all connect calls and bind them to some particular local address if it's not already bind-in? I'm interested in software for Windows. the program that I need to send from a particular address exists only under it. But under Linux, if there is something similar, it also does not hurt.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
TaroKun, 2014-01-14
@Mingun

ForceBindIP.exe is here to help.
old.r1ch.net/stuff/forcebindip

P
Puma Thailand, 2014-01-14
@opium

Run the second one in a virtual machine with a second network attached.

S
SokoloffP, 2014-01-14
@SokoloffP

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)

A
Andrew, 2014-01-14
@OLS

And the option to configure the route only to the server of this application through the IP address of the desired gateway?
PS I read your clarification about 2 copies to the same server. Then this option won't work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question