How to use a simple PHP script to determine your server's outgoing IP address. Print

  • 0


Instructions

  1. Create a file named getIP.php with the following contents:

    <?php echo file_get_contents('http://curlmyip.com/'); ?>
    
  2. Upload the file to your website's public root folder.

  3. Visit http://example.com/getIP.php in your browser.

    (where example.com is replaced with your domain name)

Demonstration

screenshot


Was this answer helpful?

« Back