连接后如何将代理服务器ip分配给客户端 [英] How do I assign proxy server ip to client after connecting

查看:157
本文介绍了连接后如何将代理服务器ip分配给客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我使用Winsock控件在VB6中创建了一个客户端和服务器应用程序。

现在我想要的是当客户端连接到代理服务器时,客户端IP应该是代理服务器IP,即如果客户端IP连接到IP为2.2.2.2的代理服务器后为1.1.1.1,则客户端IP应为2.2.2.2。



然而,当客户端用户执行whatsmyip时,它应该显示代理服务器IP而不是客户端IP,就像hidemyass一样。



这是否可以使用程序?

如果是,那么示例将有助于我开始。



谢谢

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

推荐答案

代理服务器不能像那样工作:它始终充当中介:客户端请求到达代理,并从代理发送到远程站点。然后代理接收远程响应并将其发送回客户端。这不是一件简单的事情,特别是,它肯定不涉及任何IP地址的更改(虽然客户端的IP隐藏在远程站点,因为它看到了代理)。



在VB中编写代理并不是一项简单的任务:但如果你谷歌搜索编写代理服务器vb,你应该找到一些信息。可能不是一个完整的应用程序。



请注意,它不会隐藏您从您的雇主或监视您的Web访问的任何人那里做的事情,或者来自任何真正想要找到的人。
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.


这篇关于连接后如何将代理服务器ip分配给客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆