I was having a hard time staying connected to Airdroid it would time out in about 5 Min's or less the way I solved it ( so far anyway ) was to run this command in terminal on my PC ( I am running linux on virtual machine )
while true; do nmap -p 8888 -sT 192.168.115.101; sleep 5; done
This seems to keep the connection open. change the ip to what your phone tells you to and the port if it's different. later on I am going to change the time from 5 seconds to something more reasonable. I am running the VM on Windows ultimate and I could not get it to stay connected so I tried my linux and figured this out
while true; do nmap -p 8888 -sT 192.168.115.101; sleep 5; done
This seems to keep the connection open. change the ip to what your phone tells you to and the port if it's different. later on I am going to change the time from 5 seconds to something more reasonable. I am running the VM on Windows ultimate and I could not get it to stay connected so I tried my linux and figured this out