Skip to content

Instantly share code, notes, and snippets.

View Oniicode's full-sized avatar

Oniicode

  • Germany
View GitHub Profile
@Oniicode
Oniicode / ipcheck.php
Created November 18, 2021 21:07
Quick and dirty script to check if a web server host is connected to the internet using VPN
<?php
$ip = file_get_contents("https://api.ipify.org/");
if(!isset($_GET["raw"]))
echo "WAN IP from backend: " . $ip;
else {
echo $ip;
return;
}
?>