Franco Grech Posted December 4, 2022 Share Posted December 4, 2022 Hello guys, How can I change the settings in Hyperserver to show the forwardedIP instead of RemoteIP. I'm using Apache reverse proxy and due this I see the IP of ProxyServer only. Inside the uniGUI application I see the IP of remote client in forwarded IP. Thank you for any help! Quote Link to comment Share on other sites More sharing options...
Franco Grech Posted December 13, 2022 Author Share Posted December 13, 2022 Any idea or suggestion? Quote Link to comment Share on other sites More sharing options...
Wicket Posted December 31, 2022 Share Posted December 31, 2022 Sorry to hijack your thread, but I think the answers will be similar! I have the same question about nginx. I am forwarding 'X-Forwarded-For' which is the client ip address. How do I retrieve this request header for the session? Quote Link to comment Share on other sites More sharing options...
Wicket Posted December 31, 2022 Share Posted December 31, 2022 I had a quick look and using UniSession.RequestHeader['X-Forwarded-For'] returns a string if set on the request. As I said I use nginx, and forward the clients ip address using X-Forwarded-For. Quote Link to comment Share on other sites More sharing options...
Franco Grech Posted January 1, 2023 Author Share Posted January 1, 2023 Hello @Wicket I know this function, it's ok. My problem is that, I want to see this forwarded IP in HyperServer console as well. Now I see only the proxy IP. Quote Link to comment Share on other sites More sharing options...
Wicket Posted January 1, 2023 Share Posted January 1, 2023 Ahh..I understand now. I think this would be useful to me also. Sorry I can't help! Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 2, 2023 Share Posted January 2, 2023 17 hours ago, Franco Grech said: Hello @Wicket I know this function, it's ok. My problem is that, I want to see this forwarded IP in HyperServer console as well. Now I see only the proxy IP. With the next build, if you have forwarded ip, it will show it. 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.