How to get IP address of visitors by using php



The simplest way to collect the visitor IP address in PHP is the REMOTE_ADDR. Pass the 'REMOTE_ADDR' in PHP $_SERVER variable. It will return the IP address of the visitor who is currently viewing the webpage.

Try this below code
Code Download Linkclick here

No comments:

Post a Comment