Correct me if my understanding is wrong.
All you need is:
$p->port_number( 3000 ); [download]
In reply to Re^4: Optimized remote ping (syn/ack) by BrowserUk in thread Optimized remote ping by themonk