"Little lazy" Android phone control computer shutdown

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.