Flash / PHPsockets chat not workings

I followed the tut. here:


I have a linux server that I set it up on, so I didnt do the windows batch stuff.
but anyway I get the message: Server connection failed!

the only thing i changed was the ip addess in the script to the server ip
and i converted the .fla to .swf


file permission possibly? does it have to be root for sockets or doesnt matter?

Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1