[Buffalo-pm] Querying The Port Status...

Kevin Eye eye at buffalo.edu
Thu Sep 8 12:32:09 PDT 2005


LWP::Socket looks good. Net::Ping might also do what you want -- there's an
example of trying a tcp connection on a given port in the synopsis.

http://search.cpan.org/~bbb/Net-Ping-2.31/lib/Net/Ping.pm

 - Kevin


On 9/8/05 2:47 PM, "DANIEL MAGNUSZEWSKI" <dmagnuszewski at mandtbank.com>
wrote:

> Mongers,
> 
> I have been looking around the Internet and CPAN for help on this, and
> I'm not sure that I found exactly what I'm looking for. I need to be
> able to query a server and test if a specific port is up and listening
> for connections. Is there a way that I can "ping" the port? I checked
> out LWP::Socket (
> http://search.cpan.org/~gaas/LWP-attic-1.00/lib/LWP/Socket.pm ) and it
> looks like it may do what I need to do. I'm thinking that by quickly
> connecting and disconnecting to a specific port, that it will tell me
> that it is up and listening. Is this a good way to go about this, or is
> there a better way to do it?!
> 
> Thoughts? 
> 
> Daniel Magnuszewski
> CCNA
> M & T Bank
> dmagnuszewski { at } mandtbank.com
> 
> _______________________________________________
> Buffalo-pm mailing list
> Buffalo-pm at pm.org
> http://mail.pm.org/mailman/listinfo/buffalo-pm

-- 
Kevin Eye
Web Applications Developer
Marketing and Creative Services
University at Buffalo
330 Crofts Hall
Buffalo, NY 14260
eye at buffalo.edu
phone (716) 645-5000 x1435
fax (716) 645-3765




More information about the Buffalo-pm mailing list