How to display the IP address of a visitor?

October 2016

The IP address of a visitor refers to the computer address that has been used by the later and it can be practical in many ways.

You can know who visited your website and from where they are from. You will be able to know how many times the same user has visited the website and what are the favorite sections that are chosen by the user. By this, you can optimize your website depending on your public. Personalizing your website is a great marketing tool that can increase the traffic on your website.

The PHP code for this function is




Related :

This document entitled « How to display the IP address of a visitor? » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.