Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

3 Answers 3

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.

share|improve this answer

You could do this relatively easily by creating two virtual machines, and configure each VM to use a different network interface card in the host XP machine.

share|improve this answer
    
He doesn't have two network interface cards, he has two dial-up connections. –  Massimo Oct 7 '09 at 17:26
    
You can assign different hardware to different guests via PCI pass-through, etc. My experience is with KVM hosts, but I imagine there's a more desktoppy equivalent in VirtualBox or VMWare. IF not, XP guests on KVM hosts work fine. –  nedm Oct 3 '10 at 2:45

What about http://www.r1ch.net/stuff/forcebindip/, forcebindip which binds applications to a specific interface, not sure about the ability of instancing the same application, but you can try this out.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.