How to intercept connection requests?

I am working on an application that needs to be intercepted when a program tries to connect to a specified IP and redirects it to a different IP.

Is it possible?

I am using .net for this.

thank!

+1


source to share


2 answers


It is best to use the EasyHook project to connect the connect function .



+1


source


This may not match the bill, but you can use the "hosts" file. (the "hosts" file will only work for this purpose, if the program does not connect by IP address, but the hostname)



0


source







All Articles