I used to root my Android phones for years but it's a hassle and I got tired of doing it. Nowadays I just use Termux which is a pretty slick mini-distro inside a regular Android app, though it's subject to all the restrictions of an Android app and there's no root. For network scanning I've been using Fing which is pretty slick and does a lot without the need for root, but it's closed source and a service (and they pester you with ads all the time).
That said, I've given up on Android for the future and have been working to actively de-Google my life. I picked up a Pinephone and it's getting really close for use as a daily driver and I'm really excited about it. There are people in the Pinephone community that have been using it as their primary device, though you have to expect random bugs and breakages still and I haven't made the jump yet. The hardware is running an older SOC and is a bit slow but I tend toward minimalist software so it's still workable for me. It's amazing to see a real Linux running on a real phone. :-D