To get the user’s IP use the following script:

<?php
GetHostByName($REMOTE_ADDR);
?>

To get the user’s computer name use the following script:

<?php
gethostbyaddr($_SERVER['REMOTE_ADDR']);
?>