This was created because "REMOTE_HOST" environment variable does not always work.

Using Php

Your IP is : 38.107.179.240

Your Hostname is: 38.107.179.240

REMOTE_HOST =


Use the following php code to generate this:

$ip = getenv('REMOTE_ADDR');
$host = gethostbyaddr($ip);

Using Perl

Demo

Code