Turns out that I don't even need the port!
I found this app from F-Droid called Wirebug. In the app, you can enable wireless debugging and after that point, you can then run adb connect IP_address, e.g. adb connect 192.168.0.140. Right after that, you can then run adb tcpip 5555. Both these can...