Are you using a reverse proxy like nginx? It looks like a missing X-Forwarded-For header to me.
X-Forwarded-For