When you switch from wifi network, you just to accept again the popup, I personally never re enable ADB wifi when switching network.
Anyway yes IMO the web installer run adb tcpip 5555 to enable the wireless ADB before sideloading sidequest app. So, to enable ADB, this could work. But you know that you can enable ADB with your smartphone ? https://anagan79.itch.io/quest-games-optimizer/devlog/360229/enabled-adb-wifi-vi...