How to remote control computer through mobile phone

    How does the mobile phone remote control the computer?
    In the third episode of the second season of "Sherlock", Moriarty just pressed a button on the phone, and different attack programs started to attack at the same time, although it was finally confirmed that there was no such mobile phone program, but this The behavior of using a mobile phone to control a computer can be easily realized.
    If you have a server that can be accessed by both mobile phones and PCs (that is, can be accessed by the external network), then things are easy to handle.
    1, Run a listener program on the server, which can accept mobile phone requests and PC requests.
    2. Run a program on the pc, and request the server every time, such as 1 minute, to see if there are any tasks that need to be executed.
    3, You can run a software on the mobile phone, and press different buttons to send different requests to the server and add tasks to the server queue. Of course, the simpler method is to use url, such as http://myserver/task/add?code=1
    4, to pre-determine the code, and different codes perform different tasks.
Application:
    For example, if you want to shut down the PC, code=1 means shutdown, first send a request with code=1 to the server with the mobile phone, and the server will save it after receiving it. After a period of time, the pc requests to the server, finds that there is a new task, takes it out, parses the code, gets the shutdown command, and then calls the windows shutdown command to achieve shutdown.
    Without a server, this function can also be achieved:
    run a program on email.pc, fetch emails every time, and parse the content when a new email is found (for example, I write code=1 in the body of the email) , to achieve the corresponding function.
    With the support of hardware conditions, the mobile phone can be transformed into a universal remote control to control all the electrical appliances in the home.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327013531&siteId=291194637