3. Run the next commands in the command prompt (one after another, not all at once)
adb tcpip 5555
adb shell "ip addr show wlan0 | grep -e wlan0$ | cut -d\" \" -f 6 | cut -d/ -f 1"
After the second command, you will have the IP address of your Android device