You must set the web_dir parameter, the server will write a short file with the port to connect to on that directory. The flash client will try to read that file and get the port there, if the file is not found it will default to 4445. So, set the web_dir correctly and everything will work.