in reply to perl talking to a load balancer
You need to use the telnet protocol. You opened the socket correctly, but you need to send more then just text to comunicate via telnet. You can write your own (and have it filled with bugs and recieve the wrath of merlyn), or you can use the Net::Telnet module (it has very few bugs and you will recieve merlyn's blessing).