in reply to netcat in perl
jose_m:
Use Socket or IO::Socket to try to connect to the computer, and see if it works or not.
...roboticus
When your only tool is a hammer, all problems look like your thumb.