In the Application Server you can configure the bind API server port - default is 8001. How does the network server know this port, as I don’t see anything in the configuration for the network server?
# Settings for the "internal api"
#
# This is the API used by ChirpStack Network Server to communicate with ChirpStack Application Server
# and should not be exposed to the end-user.
[application_server.api]
# ip:port to bind the api server
bind="0.0.0.0:8001"