Gateway Listener
From EsWiki
This article explains how to set up a Gateway listener.
Contents |
Protocols and Ports
Decide which protocols and ports will be needed on the server. ElectroServer 4.0.4 supports three protocols: Text, RTMP, and Binary. In most cases you will want to use port 9898 for Text, port 1935 for RTMP, and 9899 for Binary. Text protocol is default. RTMP is used for streaming. Binary is typically used for sending files.
| Protocol | Standard Port |
|---|---|
| Text | 9898 |
| RTMP | 1935 |
| Binary | 9899 |
Number of Gateway Listeners Needed
If this is a standalone server without remote connections, you will need one gateway listener for each protocol. To enable remote connections, you will need two gateway listeners for each protocol: one for the localhost (127.0.0.1) and one for the local IP address. See Enabling remote connections to a local ES4 for more details on determining IP addresses and verifying that the proper port forwarding has been enabled in your router and firewall.
Display Current Gateway Listeners
Start the server, then use the web admin interface. Click Gateways. You should see something similar to this:
Click the green + to see the list of current Listeners. You can even pause or stop the set of Listeners if you wish to.
Adding a Listener
Click the Edit link, to edit the Gateway.
To add a new listener, use the bottom row of textfields. Enter the IP address as the host name, the port required, and the select the protocol for this listener. Click Save. Repeat for any additional listeners needed. Finally, reboot the server, and check the server console to verify that there were no errors in opening the listeners.
Editing a Listener
If a change to a listener needs to be made, simply follow the above steps and change the appropriate information. Click Update to save the changes.
