简体   繁体   中英

How to Get Client IP Address(s)

We have an asp.net application which deployed in head office of a bank. Employee of bank are consumer of this application.

Employee of Bank are usually access this application using their computers which is connected to internet though a proxy server.

For Auditing purpose we need all(atleat one) ip-address assigned to their LAN-interface, when they login to the application.

I know there are some Server Variables which provides ip of client but they are only giving us ip of Proxy Server(external IP).

Please help of this. Thanks

It depends on the proxy but I believe the standard is to put the original client IP under the server variable called HTTP_X_FORWARD_FOR. Sometimes others are used HTTP_X_FORWARDED and HTTP_CLIENT_IP.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM