The server side code which runs in the laptop/computer and allows mobile device to control remotely
- Run the code on the laptop/computer
- Note down the IP address and the port number on which the server is running
- Use the above information to connect the android device to the laptop/computer
See Android app which controls the laptop/computer remotely