Use this PHP code to allow guests to view their I.P Address.

index.php
Code:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo "Your I.P is $ip";
?>
Example Here

Brought To You By PHPMini