Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have created a client & server application in VB6 using Winsock control.
Now what I would like is that when client is connected to the proxy server then the client IP should be proxy server IP i.e. if client IP is 1.1.1.1 after connecting to proxy server whose IP is 2.2.2.2 then the client IP should be 2.2.2.2.

However when client user does whatsmyip then it should show proxy server IP instead of client IP, just like hidemyass.

Is this possible using a program?
If yes then a sample example would be helpful to get me started.

Thanks
Posted
Updated 15-Jan-14 5:28am
v2
Comments
Ron Beyer 15-Jan-14 11:08am    
Proxy servers don't hand out IP addresses... is your "proxy" server and client on the same network? If so, two devices can't have the same IP.

1 solution

Proxy servers don't work like that: that act as an intermediary all the time: the client request arrives at the proxy, and is sent to the remote site from the proxy. Then remote responses are received by the proxy and sent back to the client. It's not a simple matter, particularly, and it certainly doesn't involve any changes of IP address (although the IP of the client is hidden from the remote site, as it sees the proxy instead).

Writing a proxy in VB is not a simple task: but if you google for "Write proxy server vb" you should find some info. Probably not a complete application though.

And do be aware that it won't hide what you are doing from your employer, or anyone who monitors your web access, or from anyone who really wants to find out.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900