using sockets can cause problems security wise. i would suggest maybe getting a bouncer "BNC" which acts like a proxy but is mopstly used to get around firewalls and the such so that u can get on irc.