Hey guys,
currently I'm working on my own server-list or server-tracker nvm.
Since my hosting provider is not allowing fSockOpen(), so there is my question is there any other way to get ip and port. Below simple code what I mean:
Tried on other hosting but they have restricted ports for some reasons.PHP Code:
<?php
$ip = "127.0.0.1";
$port = "13";
$con = fsockopen("udp://$ip", $port, $errno, $errstr);
if (!$con) {
echo "offline";
} else {
echo "online";
}
?>