I'm on a network with two internet connections. One is a WAN access to a corporate network (with custom firewall rules), the second is a direct internet connection.

By default, all communications are directed to the wan connexion (default route to the wan router). I can set up routes to the direct internet connexion, based on a classic target network/ip/mask to a specific router.

Is it possible to have a custom route for a specific application, and not a specific IP adress ? In fact, I don't know what are the outbound IP addresses used by the APP, and I have to make it use directly the internet connection. The application unfortunately does not support proxy server (and the protocol is proprietary).

link|improve this question

please accept an answer to avoid this being bumped up, if any of the answers have solved your question. Thanls – Sathya Jul 15 '11 at 4:37
soory, I'm not a regular user, and forgot to mark an answer. – Steve B Jul 15 '11 at 10:33
feedback

3 Answers

ForceBindIP - a utility that intercepts an application's internal winsock calls. The website doesn't claim Win7 support, but it appeared to work on my test system (netstat showed my chosen app was indeed bound to the alternate local IP address I provided). This is 32-bit only, and if your app doesn't use standard windows sockets calls, you're out of luck.

link|improve this answer
feedback

How about a virtual machine? Create a second OS instance with VMWare Player (there's a free edition) or VirtualBox and you can route the virtual network adapter it uses straight to your direct internet connection. Then for any app you want bypassing the WAN without individual routing, just run it on the virtual machine. Maybe not the most elegant solution but if you only have a few apps where traditional ip/port routing wouldn't do, this might be the way to go.

If you're willing to spend a little VMWare Workstation has a feature called "Unity" which might make working between all your apps a little more seamless. Also check into Microsoft Virtual PC. If you're on Windows 7 Professional or higher, you might even be able to leverage XP Mode for this (assuming your application is backwards compatible).

link|improve this answer
the application rely on some hardware that is not compatible with vmware – Steve B Oct 3 '10 at 19:10
feedback
up vote 0 down vote accepted

thanks for your answers.

I finally used microsoft network monitor to find the target ip addresses, then I manually set up routes for theses targets. There is near 45 target ip addresses ! :(

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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