Yes, you can shutdown your laptop using your smartphone from a distance place. Here, I used PHP script to perform the task. No apps to be downloaded in your smartphone. You just need to install wamp server in your laptop to run PHP script.
1. Download and install wamp server on your laptop.
2. Create a PHP script file as –
shutdown.php
<?php
exec(“shutdown –s –t 00”);
?>
Now create a directory “mylapi” in www directory of wamp server and put theshutdown.php file in the same directory.
3. Turn on wi-fi on your laptop.
4. Turn on the wi-fi hotspot of your smartphone.
5. Now, you will see your cellphone hotspot will be listed on wi-fi network list on your laptop. Just click on the network SSID e.g mywifi and checked connect automatically (to connect your laptop from far automatically) and click connect.
6. Go to start->run->cmd and type ipconfig
Now, you can find wi-fi IP Address of your laptop as “192.168.43.42”
Great!... you have done almost all steps, now just need to use your cell to shutdown your laptop.
7. Open browser like chrome on your smartphone and type http://192.168.43.42/mylapi
and click go
8. click on shutdown.php
Now, your laptop will shutdown instantly.
If any query mail me -->>mailmebganguly@gmail.com
the php file should be named as index.php
ReplyDeleteyou can rename it as you want...it will works same
DeleteThank you