Command Line


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
   stream-server - https://stream-server.h-da.io

   stream-server [global options] [arguments...]


   --port value, -p value  http port to listen on (default: 8080)
   --browser, -b           automatically open the default browser
   --local, -l             only listen on (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 aka localhost. The emulator must then connect to as described here:

Also note that the address 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. on your machine), you should use the special address instead.

Android Studio - User guide

Environment Variables

The 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.