Skip to content

LanaDelSlay/Shutdown-On-Lan

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn


Logo

Shutdown On LAN

A server and client to allow remote shut down, via any device including a phone.
Download Now »

View Example · Report Bugs

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. Contact
  6. Acknowledgements

About The Project

This project is oriented towards shutting down networked local machine with any computer, including phones!

Features:

  • Predictive text and persisting saved IPs using client.
  • Fully working, Python based WebServer!
  • Local HTTP site used to shutdown machines using a phone! 😄

Built With

Amazing libraries making my life SO much easier.

Getting Started

Software needed

1.) Python
2.) JDK

Installation

Automatic Server Setup On Windows

  1. Download serverInstaller.exe here
  2. Run it.
  3. Click the windows key and R on your keyboard, Type this in the Run box and click OK/Enter:
    taskschd.msc
    Step 3
  4. Click "Task Scheduler Library" on the left hand side, then look for a task called Shutdown Server. If you see it, then it was installed, and you can either run it there using the button on the right hand side, or restart your computer for it to begin starting on startup. If you don't see this then the install failed. Here's what to try next:
  5. Head to C:\ This program should unzip a jar file to C:\rebootServer\Server inside here you should start from step 3 from the following manual setup. If you do not see any of those file head to the next section to do it manually!

Manual Server Setup On Windows

  1. Download this Keep the server jar and files in the server folder all together, they need eachother!
  2. The best way to install the server is to create an automated task using task scheduler. To do this on Windows we'll click the windows key and R at the same time
  3. Type in the Run box and click OK/Enter:
    taskschd.msc

Step 2

4. On the left side expand and click on the "Task Scheduler Library"

Step 3

5. On the right side click create basic task

Step 4

6. Put whatever name you want in the name box, but select the following settings:

Step 5

7. Open the "Triggers" tab

Step 6

8. Select At startup for the "Begin the task" box

Step 7

9. Switch to the "Actions" tab, the the right of Triggers

Step 8

10. Click the New button at the bottom, and leave the action on "Start a program". Click browse and browse to the startRebootServer.bat included in the release.

Step 9

11. You're all done! Now to test if it's working use open client and type in the servers IP and use the test connection button. Or connect via your web browser, by typing the ipv4 postfixed with 8750. Check this for more info

Running client

Running the client is easy! Just double click the .jar and type in the IP and click shutdown.

Client Example

Any IPs used will be saved and populate the predictive suggestions next launch.

Predictive Text Example

Connecting to HTTP Server

Type the servers IPv4 + port 8075 into your browser

192.168.0.47:8750

Type the server's IP of which you'd like to shut down, then click the button to send the command! (or leave empty to shutdown local machine) HTTP Server

Usage

Do whatever you want with this, I do not care :) (Dont hurt people, though)

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Graham - gmiller1902@gmail.com

Project Link: https://github.com/LanaDelSlay/Shutdown-On-Lan/

Acknowledgements