Change ports 8000 and 8001

To change the port for the listener, you need to change this section in the loraserver.toml file:

  # Network-server API
  #
  # This is the network-server API that is used by LoRa App Server or other
  # custom components interacting with LoRa Server.
  [network_server.api]
  # ip:port to bind the api server
  bind="0.0.0.0:8000"

The same applies for other bind config options in loraserver.toml and lora-app-server.toml. Please note that when adding the network-server in the LoRa App Server web-interface, the port number must match. E.g. when changing 0.0.0.0:8000 --> 0.0.0.0:9000, you must enter localhost:9000 for the network-server in the web-interface (given that both LoRa Server and LoRa App Server are running on the same machine).