Socket servers

Hi all.
Does anyone have any experience running an xml socket server on Dreamhost?
I’m looking to run an extemely basic (sends out what it receives) socket server for multiplayer flash games etc. I can get the socket server to run but can’t establish a connection with it. I’ve tried ‘localhost’,, my IP address and my domain name but none seems to work.

Thanks if anyone can help.