remote-shutdown-pc icon indicating copy to clipboard operation
remote-shutdown-pc copied to clipboard

All end points are executing the default action

Open SergiuToporjinschi opened this issue 1 year ago • 5 comments

I have windows 11 no matter what request I trigger is executing the default action (Sys tray command). I'm using a secret.

SergiuToporjinschi avatar Mar 28 '23 20:03 SergiuToporjinschi

Can you provide a sample url? What do you use to trigger request, curl?

karpach avatar Mar 29 '23 15:03 karpach

I second this issue. I use http://ipadress:5001/secret/hibernate or http://ipadress:5001/secret/hibernate/ and it reboots (which is the Sys Tray command on the PC). The "remote-host-name" doesn't work, IP adress does. Maybe I didn't understand the instruction right at first... I use your tool in a public library, thanks for your work !

CeltiCat avatar May 04 '23 08:05 CeltiCat

Can you try a different command http://ipadress:5001/secret/lock or ttp://ipadress:5001/secret/suspend? The hibernate should be enabled in Windows, it is possible that it is disabled and just causes reboot.

I just tried http://ipadress:5001/secret/lock on my Windows 11 and it works fine.

"remote-host-name" depends on network configuration. Sometimes it does not work even on professionally configured corporate networks. IP address also might not work if you are in a different subnet.

karpach avatar Jul 12 '23 03:07 karpach

same here, no matter what command i specify after the secret the default action is executed. i am sure it worked as expected before

EDIT: I found out that clearing the secret code field, restarting my pc and re-entering the code fixes this issue.

if this does not work for you, it's worth mentioning that previously I accidentally caused the application to crash by saving the settings with the "System Tray Command" field empty. this might have caused some files to be recreated automatically

SECOND (SAD) EDIT: The above tips worked for less than 24 hours, the issue came back the day after unluckily.

gialla1987 avatar Jul 22 '23 18:07 gialla1987

Same issue here.

I noticed that the address can not end with the final slash /:

In my custom .bat script, this one is always hibernating for me:

set DelayStr=?delay=0
set URL="http://%remote_shutdown_desktop_ip%:%remote_shutdown_port%/%remote_shutdown_secret%/%WhatToDo%/%DelayStr%"
curl %URL%

And this one:

set DelayStr=?delay=0
set URL="http://%remote_shutdown_desktop_ip%:%remote_shutdown_port%/%remote_shutdown_secret%/%WhatToDo%%DelayStr%"
curl %URL%

Works as intended.

HerMajestyDrMona avatar Oct 02 '23 02:10 HerMajestyDrMona