Port Usage Streamsheets

What are ports?

Ports handle communication over the internet, they make sure, that there are no conflicts in data transmission. All data transmitted over the internet is sent and received by using different kinds of protocols. Each protocol is assigned a specific port number. This way data streams can easily be managed and adjusted.

Which ports are allocated by Streamsheets?

Streamsheets allocate a number of ports. Depending on what installation you have the ports may differ, but you can individually check these in the .yml-file in your Streamsheets-Installer folder.

<INSTALLATION_PATH>\services\docker-compose

These are all used ports:

  • 1883 - MQTT Broker
  • 1884 - Internal MQTT Broker
  • 8080 - Gateway
  • 8081 - Reverseproxy
  • 8083 - Feeder Service
  • 8088 - Gateway WebSocket API
  • 8090 - Repository HTTP API
  • 9000 - WebUI
  • 40000-40100 - Feeder Service (UDP)
  • 4840 - OPC UA
  • 6379 - Redis
  • 27017 - Internal MongoDB

How can I change ports?

To change each port individually open the .yml file and search for the “ports” parameter of the service.

It always has the structure port:port. This is because we map internal docker ports to the ports of the host system. The port on the left represent the port of the host system and the port on the right represents the internal docker port. The one that interests you, is the one of the host system.
Changing the port to 8082 would look like this:

8082:8081

When do I need to change ports?

Sometimes you already have installed other programs blocking certain ports. Then you encounter error messages like this:

ERROR: for streamsheets-service-feeders  Cannot start service streamsheets-service-feeders: driver failed programming external connectivity on endpoint streamsheets-service-feeders (3c98f65b49d5c5ad961c9fde5ef145f21bf385b5edc077e204a9b877834185be): Bind for 0.0.0.0:8083 failed: port is already allocated

Changing either the port of the Streamsheets or the port of the other program is then the only option, if you want to run both at the same time on this host system.