this snippet displays the IP address of the user and tries to get the hostname.

unfortunately the built-in PHP function gethostbyaddr() has a very long timeout,

download options for information / visitor IP

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.