in reply to Re^2: IO::Socket not connecting
in thread IO::Socket not connecting

I bet you're on Windows, then. Try printing $^E. $! prints 'unknown error' when there isn't a UNIX equivalent for the Windows error message found in $^E.