Enabling remote connections to a local ES4
From EsWiki
This article explains how to enable remote connections to a local ElectroServer server.
Contents |
Determine global IP address
This can be done by logging into your router's admin interface, or by visiting whatsmyip.org.
Determine local IP address
Open a command window and type ipconfig. Record the IP address shown. It will look something like 192.168.1.100. That is, four decimal numbers separated by dots.
Configure ES4
Configure ES4 to listen to the local IP address. 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.
Click the Edit link, to edit the Gateway.
In the bottom row of textfields, enter your local IP address as the host name, and 9898 as the port. Click Save.
If the server will be supporting other protocols (RTMP and/or Binary), repeat the process. See Gateway Listener for more details.
Configure the router
Configure your router for port forwarding. You want all inbound traffic to port 9898 to go to your local IP address, still on port 9898.
Restart the server
The server can be restarted manually, or by using the web admin interface (General tab). If there is a problem with the new gateway listener, ElectroServer will not restart completely, however it will restart enough that you can access the web admin interface.
Testing
For a first test, open a command window and try to telnet to your local IP address, port 9898. If your local IP is 192.168.1.100, you would type:
telnet 192.168.1.100 9898
This should display an XML file. This means that ES4 is properly configured.
For a second test, use whatsmyip's Custom Port Test to see if port 9898 is open.
For a third test, ask somebody not on your network to try to telnet to your global IP address, port 9898. If that person gets an XML file, then everything is properly configured for remote connections.
Troubleshooting
If the first test above works but the second does not, here are some things to try.
- Connect directly to your ISP, bypassing the router. This will help narrow the problem down to router (it works without the router) or firewall (it still doesn't work). Your modem may have a firewall as well.
- Check that your firewall settings allow ElectroServer's port 9898, on both the PC and the router. A quick check whether it is your firewall that is causing the problem is to simply disable the firewall completely, then test. If this fixes the problem, then you need to configure the firewall. Don't forget to turn the firewall back on again.
- If bypassing the router and turning the firewall off still doesn't work, then there is probably a second firewall somewhere on your machine, the modem, or perhaps at the ISP level.
Using a static IP address for the host that is running ElectroServer is highly recommended.
