代理服务器上的客户端ip [英] client ip on proxy server

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

问题描述

大家好,
我想从我的应用程序中获取用户ip,但我无法通过任何代理服务器获取使用我的应用程序的用户的ip.在这种情况下,我获取的是代理服务器ip,而不是用户计算机的ip.


请建议我如何通过代理服务器获取用户ip.
我在C.asp.net中的应用程序.

我正在等待您的建议.

Hi All,
i want to get the user ip from my application, but i am not get the ip of those user who are used my application through any proxy server.in this case i am getting the proxy server ip not the user machine ip.


Please suggest me how to get the user ip over the proxy servers.
My application in asp.net with C#.

i am waiting for your suggestion.

推荐答案

这是代理服务器的概念:客户端连接到代理服务器,请求一些服务,例如文件,连接,网页或其他资源(可从其他服务器获得).如果请求被验证,则代理通过连接到相关服务器并代表客户端请求服务来提供资源.客户端的IP永远不会到达服务器-它仍然在代理内部.
That is the idea of a proxy server: A client connects to the proxy server, requesting some service, such as a file, connection, web page, or other resource, available from a different server. If the request is validated, the proxy provides the resource by connecting to the relevant server and requesting the service on behalf of the client. At no time does the IP of the client get to the server - it remains internal to the proxy.


请提供一些示例代码,我尝试通过多种方式使用不同的代码获取ip,但是输出不满意
Please provide me some sample code, i tried to get ip many ways with different code but not get satisfied output


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

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