Windows – route traffic via 2 different network interfaces

ip-routingroutingwindows

I have Windows XP systems with two GPRS modems hooked in. There are two copies of my program running, each one connecting to same server in 3rd party network via TCP socket(s).

My goal is to "bind" traffic from each copy to specified modem (i.e. simulate two different GPRS-connected users from server point of view)

Thanks

Update: I can tweak the code, but of course, external solution is preferred

Best Answer

You can't.

Outgoing IP traffic can be routed through different gateways based on the destination network (or address), but if all your connections are going to the same server, you can only follow a single IP route to it.