A Livepeer Gateway can be deployed on a hosted server. For this guide it is assumed that this hosted server is running Linux (Ubuntu).
It is necessary to configure Livepeer Gateway appropriately, in order to allow required remote access to the server.
When starting Livepeer Gateway, run the following command:
./livepeer \
-gateway \
-rtmpAddr 127.0.0.1:1935 \
-httpAddr 127.0.0.1:9935
Note: this command is technically equivalent to running the same command without -rtmpAddr or -httpAddr flags, as these are the default options. They are explicitly included here for illustrative purposes only.
Livepeer Gateway will only allow content to be published and consumed on the hosted server itself:
| publish | consume | |
|---|---|---|
| local | yes | yes |
| remote | no | no |
When starting Livepeer Gateway, run the following command:
./livepeer \
-gateway \
-rtmpAddr 127.0.0.1:1935 \
-httpAddr 0.0.0.0:9935
This will only allow content to be published from the hosted server itself but will allow content to be consumed locally or remotely, by any host with network access to the hosted server.
| publish | consume | |
|---|---|---|
| local | yes | yes |
| remote | no | yes |
When starting Livepeer Gateway, run the following command:
./livepeer \
-gateway \
-rtmpAddr 0.0.0.0:1935 \
-httpAddr 0.0.0.0:9935
This will allow content to be published and / or consumed remotely, by any host with network access to the hosted server.
| publish | consume | |
|---|---|---|
| local | yes | yes |
| remote | yes | yes |
Note: when publishing or consuming content from a remote host, the server's IP address must be used instead of 127.0.0.1
Note: you may need to open ports 1935 and 9935 in your server's firewall configuration in order to allow internet access.