This is method to get someone IP using a PHP script. Just copy the below code and paste it in notepad. Save the file as ip.php you can change ip to any name but .php is must.
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$img_number = imagecreate(400,95);
$backcolor = imagecolorallocate($img_number,10,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);
imagefill($img_number,0,0,$backcolor);


