On Sat, Feb 23, 2002 at 05:51:18PM +0530, Veeraraju_Mareddi wrote: > This is testing ports by telnetting to the ports.But in doin so it real for > 25 port only.For remaining ports ,its failed,that means Even though PORT is > opened ,TELNET is not able to Open.
telnet is a tcp service, that's why Net::Telnet can test for tcp connections only. If you want to test for udp ports as well, you should upgrade from Net::Telnet to IO::Socket. Anyway, it sounds like you're actually looking for a portscanner. If you run linux, I'd recommend you using nmap, see http://www.nmap.org/ . Example: jfranken@egal:~$ nmap 217.226.113.91 Starting nmap V. 2.53 by [EMAIL PROTECTED] ( www.insecure.org/nmap/) Interesting ports on pD9E2715B.dip.t-dialin.net (217.226.113.91): (The 1519 ports scanned but not shown below are in state: filtered) Port State Service 22/tcp open ssh 25/tcp open smtp 80/tcp open http 113/tcp closed auth jfranken@egal:~$ _ -- Johannes Franken Professional unix/network development mailto:[EMAIL PROTECTED] http://www.jfranken.de/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]