• 🏠 Home
  • 🧰 Online Generators
  • 📰 Blog
  • 🔎 Search
  • 📧 Contact
  • 📘 Guestbook
  • 🗞️ News
  • 💰 Support
  • ℹ️ Info: The website has been modernized to improve readability and smartphone compatibility. Feel free to report any bugs using the contact form

    PHP - Determine the IP address of a visitor


    Determine the IP address of a visitor

      To determine the IP address of a visitor, you have to use $_SERVER["REMOTE_ADDR"] instruction.

       

      Example:

        $VisiteurIP = $_SERVER["REMOTE_ADDR"];
        print "You're IP address is: $VisiteurIP";
        
    Go back



    (c) 2005-2025 Jérôme DESMOULINS
    Data privacy