<?php echo $_SERVER['REMOTE_ADDR']; ?>
<?php $dyndns = file_get_contents('http://checkip.dyndns.com/'); $ipArray = explode(":", $dyndns); echo $ipArray[1]; ?>