Background
Many times in the evening, lying in bed listening to the computer put music rest, listening to listen to the eyes can not open, drowsiness comes, often at this time I really is not willing to turn off the lights, shut the computer, because it is likely to have a thick drowsiness there is no, and have the spirit, so I want to write something can use the phone to control the Today the weather in Shanghai is very hot, reading is not going to go down, knocking on the program, and then there is a "small lazy."
Solution Solutions
When writing this software, think of two solutions, such as
There is a plan 2, is that I did not think how to use the mobile phone app to run in the computer's server IP, can not I get up to see the server IP is how much, and then enter the IP shut down, then I have a little cheap taste, and also have to write PHP program, the weather so hot, My notebook is always automatically turned off, and finally chose option 1.
Run
Desktop client uses C # to support boot boot
Android phone interface is relatively simple, just a button
Points
The mobile app gets the IP from the computer server. The phone sends a ping command, obtains the IP within the LAN, and then sends the shutdown command to these IP and fixed ports respectively, and the server receives a shutdown command and then replies and executes the shutdown command.
The difficult person does not, the meeting is not difficult, the code simply does not post. Forget to buy cigarettes, this point also did not sell, or hurry up to sleep it, Ann
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
"Little lazy" Android phone control computer shutdown