Get the visitors IP

Getting the IP of you visitors is an easy task in PHP. You find the information in the $_SERVER array:

print "Your IP is ".$_SERVER['REMOTE_ADDR']."";

This will show your public IP adress.
Every now and then I need to check my own public IP so I put this very simple page togheter: Check your IP

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">

This site uses Akismet to reduce spam. Learn how your comment data is processed.