I just want to get into Lora-App-Server (locahost:8080) using my IP (for example 192.168.1.19:8080 when i am in the same network) from another PC.
OR
using EXTERNAL IP(or STATIC):8080 after the configuration of Port Forwarding in my router, so as i could use the API from another/external network (my home), when the PC with the installed Lora server will be in my office.
I just gave a static IP in Lora Server PC (Linux) and as i mentioned, configurated the port forwarding in the router in port 8080 for this IP.
I didn’t change something else in conf.file of Lora Server and Lora-App-Server,as i read a lot and created me a little bit confusion.
@brocaar your contribution will be really valuable,if and when you will be in position to give me a hint,as i can’t establish (external) connection via remote pc.
Not sure if I can help here. When --http-bind is set to 0.0.0.0:8080 (default value) the HTTP server is available on all interfaces, so it should be accessible from any IP on the same network (when set to 127.0.0.1:8080 it will only be accessible from the same machine). When that does not work, look at your firewall settings, etc…
From external/different networks is this possible?
I mean,using a port forward in the router and using external/static IP (of the router) could be accessible from my home from example (HTTP server is installed in office-different network)?
I make the same question, because you mentioned only about the same network.
So you tell me that (unicast IP?) 0.0.0.0 in the configuration file, on HTTP Server is enough for connecting in the API via 192.168.x.x (for example in same network) and 85.x.x.x (static Ip of my router) from external network combined with the appropriate firewall .etc configuration?
I just re-answer cause i need to absolute understand!
What I’m trying to say is that when you bind to 0.0.0.0:8080 the http server will listen on all network interfaces of that machine. When you bind to 127.0.0.1:8080, it will only bind to the loopback interface, meaning the server will only be accessible from the same host.