Custom policy file
From EsWiki
If your ES4 is behind a router that uses port forwarding to a different port, then you will need to use a custom policy file.
Example scenario
How do you tell if you need one? If external clients can connect to your ES4 without one, then you don't need one!
Here's a scenario that does need a custom policy file.
- Client applications are connecting using port 9899
- Router forwards the messages from the clients to the ES4's server, but uses 19899
- ES4's gateway listeners are listening on port 19899
Customize the Policy File
Here's the policy file that would be needed for our scenario:
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*" to-ports="9899" /> </cross-domain-policy>
If the clients use multiple ports, add another allow-access-from line for each port.
Install the Custom Policy File
- From the web admin's General tab, click Edit server settings.
- Near the bottom you will find Enable Custom Policy File. Toggle it on.
- Click Save.
- A button should appear that says Edit Custom Policy File Contents. Click it.
- Paste the policy file that you customized above into the text area.
- Click Save.
- Restart the ES4 and test that clients can connect.
