J
Joe
Hello -
I have a script that tries to connect to a Pop3 e-mail server through
port 110. The following code used to work for the longest time but
now all of a sudden it does not work anymore:
$SocketHandle = IO::Socket::INET->new (Proto=>"tcp",
PeerAddr=>$ServerName, PeerPort=>$Port);
# $Port = 110
if (!$SocketHandle)
{
Error("cannot connect to port <B>$Port</B> on
<B>$ServerName</B><BR><B>Error
Detail</B> ... '$!' & '$@' & '$?'", "Back");
exit(0);
}
The error message is as follows:
Error ... cannot connect to port 110 on pop.XXX.com
Error Detail ... 'Bad file number' & 'IO::Socket::INET: Connection
refused' & '0'
When I use telnet and connect to the server port 110 it works just
fine. Did something change in the latest Perl release or could it be
that my web hosting service changed something in their setup?
Thanks,
Joe
I have a script that tries to connect to a Pop3 e-mail server through
port 110. The following code used to work for the longest time but
now all of a sudden it does not work anymore:
$SocketHandle = IO::Socket::INET->new (Proto=>"tcp",
PeerAddr=>$ServerName, PeerPort=>$Port);
# $Port = 110
if (!$SocketHandle)
{
Error("cannot connect to port <B>$Port</B> on
<B>$ServerName</B><BR><B>Error
Detail</B> ... '$!' & '$@' & '$?'", "Back");
exit(0);
}
The error message is as follows:
Error ... cannot connect to port 110 on pop.XXX.com
Error Detail ... 'Bad file number' & 'IO::Socket::INET: Connection
refused' & '0'
When I use telnet and connect to the server port 110 it works just
fine. Did something change in the latest Perl release or could it be
that my web hosting service changed something in their setup?
Thanks,
Joe