I'm running MainsailOS on my Raspberry Pi, but when I try to get the Pi’s IP address using hostname -I, it returns 127.0.1.1. This appears to be the loopback address and not the IP assigned by my network. I am using RPI 02w and also tried 0w, am using 2.4g wifi, and using 64 bit version.
I tried:
checking my routers admin page
nmtui
rfkill list all (it was soft blocked, unblocked, and it still doesnt work)