in reply to IO::Socket not connecting

Can you give more information about the host you are connecting to?
Is there a firewall running on the box?
Are you trying to connect to a TTY/VTY port to a *nix host?