Unable to get Internet visitors public IP

I can not get access to the Internet visitors IP data, only to get the local area network visitors IP. Where is the error?

Could you elaborate on the use case? Are you tracking an intranet? Or maybe your Piwik instance is behind a proxy? Maybe this one will help: How do I configure Piwik when the server is installed behind a proxy? - Analytics Platform - Matomo