How to use different network interfaces for different processes?
Problem
I have two network interfaces on a Linux PC, and I need to manually set the interface that a given process will use. The program (Twinkle softphone) does not have a similar option, so I believe that it must be set externally. How can I do it? Edit: I'm not trying to make a server process bind to a specific interface, but rather to make a client program contact a server using a specific interface.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How to use different network interfaces for different processes?
you can replace code at runtime by the use of LD_PRELOAD (@windows you can use a similar technique called detours, quite fancy). what this does is to inform the dynamic linker to first load all libs into the process you want to run and then add some more ontop of it. you normally use it like this: and by that you change what does. for your problem i would try http://www.ryde.net/code/bind.c.txt, which you can use like: here is how you build it: a longer howto is http://daniel-lange.com/archives…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix