Greetings,
I'm having issues where moodle does not log the correct IP addresses, I did a lot of research and installed mod_remoteip and changed some settings and it still does not record it properly.
What I'm using:
Some Useful Data: (PHP.INFO)
- $_SERVER['REMOTE_ADDR'] = 162.158.166.93 (CloudFlare / Wrong IP)
- $_SERVER['SERVER_ADDR'] = 45.58.***.*** (Real Server IP)
- $_SERVER['HTTP_CF_CONNECTING_IP'] = 217.165.***.*** (My Real IP Address)
- $_SERVER['HTTP_X_FORWARDED_FOR'] = 217.165.***.*** (My Real IP Address)
I tried changing the settings in Moodle -> Server -> HTTP -> "HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR, REMOTE_ADDR"
But that didn't work.
Please advise me on how to proceed or if im missing something