Sockets work fine here. This might be a firewall issue for you, did you check your firewall?

Can you provide an example script?