Background
Many nights, lying in bed listening to the music resting on the computer, listening to listen to the eyes open. The sleepy rush came up. Often this time I really do not willing to turn off the lights, shut the computer. As a result, it is very likely that the thick drowsiness will not be. It's a spirit again. So just want to write something can use the mobile phone control to turn off the lights and computers. 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."
How to Solve
When writing this software, think of two ways to solve the problem. For example with
There is a scenario 2, I was not thinking how to use the mobile phone app to perform on the computer's server IP. I can not get up and look at the server IP is how much, and then enter the IP shutdown, then I am a little cheap taste. And also have to write PHP program, the weather is so hot, my notebook is always the active shutdown, and finally chose option 1.
Perform
Desktop client uses C # to support boot boot
The Android phone interface is simpler. It's just a button.
Points
The mobile app gets the IP from the computer server. The phone sends a ping command to get the IP within the LAN. The shutdown command is then sent to these IP and fixed ports respectively. After the server receives the shutdown command, it replies and runs 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. Just go to sleep, Ann.
"Little lazy" Android phone control computer shutdown