Simple PHP Script to show your public IP.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
243 B

<?php
// My local network breaks this script, so just forward to icanhazip since they can deal with it.
if($_SERVER["REMOTE_ADDR"]=='192.168.86.1'){
header("Location: https://icanhazip.com");
exit();
}
else{
echo $_SERVER['REMOTE_ADDR'];
}
?>