It looks like your PHP isn't receiving the client IP address from the web server. I'm guessing you're using Nginx and this is a bad PHP-FPM configuration. You'll need to adjust that config to pass the standard things, particularly the REMOTE_ADDR option.