Hi, i have this use IO::Socket; $port=21; $server="155.132.48.23"; #$server="192.40.54.41";
$sock = IO::Socket::INET->new(PeerAddr =>$server, PeerPort => $port, Proto => 'tcp') ; it works but what i wanted is to make it not from a remote host but a local host to avoid needing ip adress. i tried this: $sock = IO::Socket::INET->new(LocalHost =>'localhost', PeerPort => $port, Proto => 'tcp') ; but it fails I don't know how to specify 'localhost' Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]