Restrict IP considers LAN IP

Hi,

I have a static IP but ERPNext seems to record my LAN IP (192.168…) in the last login section instead. For this reason, I am unable to restrict IP. Could it be a problem with my config?

Thanks

If anyone else has this issue, here is what was causing the problem in my case:

My computers are behind a firewall device which had the following option checked. I unchecked it and everything works normally now.
Include X-Forwarded-For header information

Can be closed