Creating a socket with IO::Socket does not behave in the expected fashion of doing so using real socket programming when it comes to failing. This is a known bug. You might consider just using normal sockets. --tom