Try the IP logging script at
--1afm.net/scripts/catscript.php?catid=15--
If you want it to email the IP to your email address add the following code below the script:
$to = "info@youremail.com";
$subject = "IP ADDRESS FROM YOUR SITE";
$body = "Hi,\n\nA new IP addresss is " .$user_ip ;
if (mail($to, $subject, $body)) {
echo("<p>IP logged</p>");
} else {
echo("<p></p>");
}