Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
103.02k stars 10.01k forks source link

Why tcpip wireless connection gets revoked after a while? #4888

Open BadrShuaib90 opened 3 weeks ago

BadrShuaib90 commented 3 weeks ago

Everytime I establish a connection through tcpip with my device it works fine for a couple of days or so, then at some point it needs me to re-establish the connection through USB all over again. is there a way to make the connection last without having to connect the phone via USB every couple of days?

does this have to do with phone settings?

rom1v commented 3 weeks ago

It's reset after a phone reboot. You can't preserve adb tcpip 5555 unless your device is rooted.

MeowFlyx commented 2 weeks ago

It's reset after a phone reboot. You can't preserve adb tcpip 5555 unless your device is rooted.

I have root, How do I do it? Preferably using termux.

rom1v commented 2 weeks ago

https://android.stackexchange.com/questions/232082/how-can-i-enable-android-debugging-from-a-root-shell-on-the-phone/232083#232083