I was trying to give the Gateway OS a Static IP, and as per the rules I edited the
“interfaces file” under
/etc/network as follows:
#Wired or wireless interfaces auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 network 192.168.1.0 gateway 192.168.1.1
After rebooting the Gateway OS, I was able to see through
ifconfig that the Static IP was allotted to it. But as soon as I accessed the
Chirpstack Application Server through
localhost:8080, and clicked on any registered
Application, it showed the following error:
redis connection error: dial tcp [::1]:6379: connect: connection refused (code: 2)
Now, if I allot the same Static IP as above but keep the
netmask and the
gateway as default i.e. :-
#Wired or wireless interfaces auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 network 192.168.7.0 gateway 192.168.7.1
and reboot the gateway, it still gets the Static IP as shown by the
ifconfig command, and I am able to also access the
Chirpstack Application Server without any error by the
But as can been seen, as the
IP address belongs to the
Class C network; the first three bytes, 192.168.1 forms the
network. The final byte in this example, 2, is the
gateway IP’s should fall within the network.
Therefore the configurations provided in the latter case should be technically wrong, and the former configurations should be correct.
chirpstack application server cannot connect to
Redis on the former Static IP Configurations.
Also, I cannot change the
redis bind address to
/etc/redis/redis.conf as that is not a solution to this problem and anyone can connect to this
Redis instance, which is highly insecure.
It would be great if someone could solve my problem!
Thank you so much!