Server IP Address in Logs


The final column in your system’s log entries contains the server IP address instead of the admin’s or client’s IP address.

This may occur in any of the following logs at Utilities > System Logs:

  • Activity Log
  • Admin Log
  • Whois Log


The IP address that the server configuration is supplying to PHP is incorrect.

WHMCS checks the following variables in descending order for an IP address. If the IP address is available and not a local address, it will use that as the client’s IP address on the order form, details, and logs. If none of these are available, WHMCS will return the REMOTE_ADDR as the IP address. This applies to both IPv4 and IPv6 connections.


If one of these PHP variables is reporting the server’s IP address instead of the visitor’s IP address, WHMCS will record it.

This scenario often occurs on servers that use a proxy or forwarding service like CloudFlare®.


To resolve this issue, configure WHMCS to recognize the proxy server’s details:

  1. Go to Configuration () > System Settings > General Settings.
  2. Select the Security.
    The Security tab in General Settings
  3. Configure the Proxy IP Header and Trusted Proxies values per your proxy server’s configuration.
  4. Click Save Changes.

Last modified: June 14, 2024