Steps :
su
-- To switch to super user.
setprop service.adb.tcp.port 5555
- To specify the tcp Port - 5555 is the port number here
stop adbd
- To stop the adbd service.
start adbd
- To start adbd service.
this works perfectly with ssh
from my windows PC
I try to do this on the boot on my cyanogen mobile or launch this with plink. With plink I can't launch shell with su right ... sudo or su command not works. On boot I don't know how it's works!
My shell program works from ssh with su -c "sh /storage/sdcard1/start_adb.sh"
with the last 3 commands (without su --)
Thanks