Connecting loraserver and lora-app-server in separate systems


#1

Hi.

I want to install loraserver and lora-app-server in two separate systems. For example loraserver and lora-gate-way on a system with the 192.168.1.4 IP and lora-app-server with the 192.168.1.5 IP and then connect them together.

I change lora-app-server.toml file as below, but they are not connected together
public_host="192.168.1.4:8001"

What changes should I make to loraserver and lora-app-server configurations?

Thank you very much for the full answer to this topic.


#2

In that case your public_host config variable should use that IP. It must be set to the IP / hostname which other services (LoRa Server) will use to connect to LoRa App Server.

Then when you add a network-server in the LoRa App Server interface, you add the network-server using the 192.168.1.4 IP (on which LoRa Server is accessible).


#3

I changed, but I get an error.
lora-app-server is on a system with the 192.168.1.5 IP and loraserver is on a system with the 192.168.1.4 IP.
Now, in lora-app-server’s system, in lora-app-server.toml file I make the following changes:
bind: 192.168.1.5:8001
public_host: 192.168.1.5: 8001
In loraserver’s system, in the loraserver.toml file, I’ll change the following:
bind: 192.168.1.4:8000
Now when I want to have a network-server through> the web:
Network-server server: 192.168.1.4:8000`
In this case, I will take the following error:

rpc error: code = Unimplemented desc = unknown service ns.NetworkServerService (code: 2)

Is my settings above incorrect? If it’s a mistake, please explain me where should I change in the above configuration?
Thanks