Jump to content

PHP Port Checker Script


RNT

Recommended Posts

Thanks! With that script I made my own port checker! Now you can setup the range of ports to check all of them! :D

Mine is in portuguese. Checkout!

http://www.erickxavier.com/test_port.php?inicio=8070&fim=8090

The translated script ready to go:

use test_port.php?first=FIRSTPORT&last=LASTPORT

<?php
ini_set('error_reporting', E_ALL);
function trace($obj)
{
print("<pre>");
print_r($obj);
print("</pre>");
}


$inicio = $_REQUEST["first"];
$fim = $_REQUEST["last"];
if (!$ip = getenv('HTTP_X_FORWARDED_FOR')){
$ip=getenv('REMOTE_ADDR');
}
trace('<span class="style1">YOUR IP: </span><span class="style2">'.$ip.'</span></br>');
for($i=$first;$i<=$last;$i++){

if (!@fsockopen($ip, (int)$i, $errno, $errstr, 10)){
trace("CLOSED: $i");
} else {
trace("OPENED: $i");
}
flush();
}

?>

Copyright

Renato Pires

lol thanks utorrent community

You guys can use my script however you want! :P

Original thread: http://forum.utorrent.com/viewtopic.php?id=38356

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...