Recommended Simple Setting:Leave the connection configuration as default. Advanced Setting:
To bind your chat server to low port like 80 or 443, here's the solution: (See above table1.) For primary-server, set a port lower than 1024, like "80" or "443". While for secondary-server, set a port higher than 1024. With such a connection setting, secondary-server is only useful to users with earlier version of flash player. (As we stated before, flash player earlier than 7 only allow access on high port (1024-65535).) IP configuration: Case 1:When your web server and chat server are on the very same server machine, it is highly recommended you leave the server host as default "*", which means the chat server will bound all IP of your server. Then the host value in client.xml can be "*" too, which we'll explain later in client configuration section, or a random IP of yours , or any domain name which points to any IP address of your server. Client can connect to server in either way. Or, if you set server ip to any specific IP of your server, then chat server will only bound one IP. Well then in client.xml, you have to use this specific IP or the domain name points to this IP to connect chat server. Case 2:When your web server and chat server are NOT on the same server, it's a bit more complicated. The server host can be set to "*" or any specific IP address, and the host value in client configuration has to be identical. If server host="*", then client host can be any random IP or domain name which points to the IP; If server host= a specific IP, the client host can only be the IP, too, or a domain name which points to the IP. cross-domain-policy:123 flash chat server start uses cross-domain-policy to enhance security. <cross-domain-policy> <allow-access-from domain="*" /> </cross-domain-policy> By default it permits access to documents originating from any domain. To limit access only from one domain name, you can configure like this: <cross-domain-policy> <allow-access-from domain="www.mydomain.com" /> </cross-domain-policy> Or you can allow all URL on mydomain.com to access: <cross-domain-policy> <allow-access-from domain="*.mydomain.com" /> </cross-domain-policy> To allow multiple domain name to access: <cross-domain-policy> <allow-access-from domain="www.myfriendsdomain.com" /> <allow-access-from domain="*.mydomain.com" /> <allow-access-from domain="11.22.33.44" /> </cross-domain-policy> |