use IO::Socket::INET; (you may have to get it from cpan)
instead of use IO::Socket;. That might work.
http://search.cpan.org/author/RSE/lcwa-1.0.0/lib/io/IO/Socket/INET.pm
Kevin
From: david <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Telnet using IO:Socket module
Date: Fri, 17 Jan 2003 13:54:23 -0800
Pankajwarade wrote:
> my $sock = new IO::Socket::INET (
> Proto => 'tcp',
> PeerAddr => 10.38.3.3,
> PeerPort => 23,
> ) or
>
> die "Could not create socket: $!\n" unless $sock;
[snip]
> I userstand, I can use Net::Telnet module also for the same.But, tring to
> make it work with IO:Socket.
>
> Any input on this will really be appreciated.
>
you are trying to connect 10.38.3.3 using port 23 which the server is
probably listening for Telnet connection. Telent doesn't use the tcp
protocol, it uses TELNET.
david
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]