@lyncia iirc the problem with that for me was that you need a wired adb connection to tell it to enable wireless, and that doesn't survive a reboot. so when my USB C connector failed on my pixel 2 i had to use an SSH daemon and the fact that my phone was already rooted to save myself
it was a gift i didn't ask for, i was fine on my 4 :\