"Little lazy" Android phone control computer shutdown

Source: Internet
Author: User

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

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.