Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 683 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 683 Bytes

remote-shutdown

Requirements

Installation

  1. run the server
  2. cd /path/to/server/ and install dependencies: npm install
  3. run node ./server.js (ideally, add to startup apps)
  4. install for example REST Client for Android
  5. test it by sending DELETE requests to your computer's IP on port 9999
  6. if needed, open port 9999 (just for local network) for instance by sudo iptables -A INPUT -p tcp --dport 9999 -j ACCEPT (ideally, save iptables permanently)
  7. if needed, provide password to your script as a first command line paramater