views:

146

answers:

2

Hello, I'm working on an app that needs to intercept when a program tries to connect to an specified IP address and redirects it to another IP.

Is this possible?

I'm using .net for this.

thanks!

+1  A: 

Your best bet is to use EasyHook project to hook the connect function.

arul
A: 

It might not fit the bill, but you could use the "hosts" file. ("hosts" file will only work for this purpose if the program is not connecting by IP address, but a host name)

Kalmi