We have:
The web application needs to read a smart card in a smart card reader on the client computer.
For this the web application makes a connection to the Server Socket application on the client computer with the IP address of the client computer.
This IP address is determined through ServletRequest object of our web application call.
When this setup runs in a RD environment (eg Citrix), we receive the server IP address instead of the client computer IP address.
How can we retrieve the client IP address? Perhaps by using WebSockets?
I am not sure if these are correct, but I have looked around and some possible solutions found are:
These would require modification/configuration of the RD environment and we don't manage this level. Of course, if there is no other way, I can try to request this.
You should try X-Forwarded-For. Worked for us. Somehow different scenario but it worked for us.
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.