By default the server listens on all IPs on port 8080. This is totally fine for most users. You can skip this page.
$ ./stream-server --help
NAME: stream-server - https://stream-server.h-da.io USAGE: stream-server [global options] [arguments...] VERSION: v0.9.9 GLOBAL OPTIONS: --port value, -p value http port to listen on (default: 8080) --browser, -b automatically open the default browser --local, -l only listen on 127.0.0.1 (see doc) --help, -h show help --version, -v print the version
By default stream-server listens on all ip addresses on port 8080. This means that it is exposed to the local network (LAN / WLAN) which is needed if the app is on a phone. Note that the phone must be in the same network as the computer / laptop.
When using the Android Emulator on the same device as the server this exposure is not necessary. Use the
--local flag to only listen on
localhost. The emulator must then connect to
10.0.2.2 as described here:
Also note that the address 127.0.0.1 on your development machine corresponds to the emulator's own loopback interface. If you want to access services running on your development machine loopback interface (a.k.a. 127.0.0.1 on your machine), you should use the special address 10.0.2.2 instead.
TWITCH_CLIENT_ID environment variable can be set. This is only necessary during development to access the Twitch API. All official release builds ship with a default client id but you can still supply your own if you want.