Are Visitor IPs Getting Properly Logged On My Server?

Your server's IP address is Your IP address (as logged in the server) is
115.72.42.170 34.237.51.35

Verdict: YES

Client & Server Info

Array
(
    [PATH] => /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
    [TZ] => Asia/Ho_Chi_Minh
    [HTTP_CONNECTION] => close
    [SCRIPT_NAME] => /ip.php
    [REQUEST_URI] => /ip.php
    [QUERY_STRING] => 
    [REQUEST_METHOD] => GET
    [SERVER_PROTOCOL] => HTTP/1.1
    [GATEWAY_INTERFACE] => CGI/1.1
    [REMOTE_PORT] => 52546
    [SCRIPT_FILENAME] => /home/endfile/public_html/ip.php
    [SERVER_ADMIN] => webmaster@5file.net
    [CONTEXT_DOCUMENT_ROOT] => /home/endfile/public_html
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => http
    [DOCUMENT_ROOT] => /home/endfile/public_html
    [REMOTE_ADDR] => 34.237.51.35
    [SERVER_PORT] => 80
    [SERVER_ADDR] => 118.69.182.29
    [SERVER_NAME] => 5file.net
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => 
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
    [HTTP_X_REAL_IP] => ::ffff:34.237.51.35
    [HTTP_X_FORWARDED_SERVER] => 5file.net
    [HTTP_X_FORWARDED_PROTO] => http
    [HTTP_X_FORWARDED_PORT] => 80
    [HTTP_X_FORWARDED_HOST] => 5file.net
    [HTTP_HOST] => 5file.net
    [SCRIPT_URI] => http://5file.net/ip.php
    [SCRIPT_URL] => /ip.php
    [UNIQUE_ID] => XdO@zSqV-CGyojCjc7asnwAAAAM
    [FCGI_ROLE] => RESPONDER
    [PHP_SELF] => /ip.php
    [REQUEST_TIME_FLOAT] => 1574158029.7176
    [REQUEST_TIME] => 1574158029
    [argv] => Array
        (
        )

    [argc] => 0
)