}
        }
    }
    return "";
}
// Validates IP and retunrs true or false
function validate_ip()
{
    if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE === false)) {
        return false;
    } else {
        return true;
    }
}
$remote_ip = $_SERVER["REMOTE_ADDR"];
$forwarded_ip = forwarded_ip();
?>

    <div class="container">

        <div class="row">
            <div class="col-lg-12">

                <div class="center-text">

                    <h1>What Is My IP?</h1>
                    <p>The request came from:</p><br>
                    <a href="browser_mirror.php" data-toggle="tooltip" data-placement="auto" title="More info?"><p><strong><?php 
echo $remote_ip;
?>
</strong></p></a>
Example #2
0
<br>




    <h1 class="text-center">What is my IP?</h1>

        <p>Browser Width:<strong><span id="window-width"></span> </strong></p>
        <p>Browser Height:<strong><span id="window-height"></span></strong></p>

 <p>Your IP address is: <strong> <?php 
echo $_SERVER['REMOTE_ADDR'];
?>
</strong></p>
 <p>Your Proxy (forwarded) IP address is:<strong> <?php 
echo forwarded_ip();
?>
</strong></p>
        <p>User Agent: <strong> <?php 
echo $_SERVER['HTTP_USER_AGENT'];
?>
</strong></p>
        <p>Browser: <strong> <?php 
echo $bd->browser_name;
?>
</strong></p>
        <p>Platform: <strong> <?php 
echo $bd->platform;
?>
</strong></p>