Renzo
January 23rd, 2004, 04:43 AM
Well anyhow, i making this program to act as a proxy between this client and its server.
The first bit it does is via hostname, it contacts the server list server and finds out what the IP is of the server.. Now i can 'proxy' that bit (aka it sends to my program and my program sends to real server etc...) by editing the hosts file with 127.0.0.1 serv.example.com.......
But after that it connects directly to the IP, so the hosts file bit doesnt have any effect after that.....
How can i make it send to my program? Some sort of hook?
I tryed Bind() bit it returns error 10049 which is something about an IP address not associated with the local PC.
So anyone got any ideas what to do?
The first bit it does is via hostname, it contacts the server list server and finds out what the IP is of the server.. Now i can 'proxy' that bit (aka it sends to my program and my program sends to real server etc...) by editing the hosts file with 127.0.0.1 serv.example.com.......
But after that it connects directly to the IP, so the hosts file bit doesnt have any effect after that.....
How can i make it send to my program? Some sort of hook?
I tryed Bind() bit it returns error 10049 which is something about an IP address not associated with the local PC.
So anyone got any ideas what to do?