seriousm4x / UpSnap

A simple wake on lan web app written with SvelteKit, Go and PocketBase.
MIT License
1.87k stars 73 forks source link

[BUG] Wake on Lan with the IP Address field doesnt work. #635

Open crouch010 opened 1 week ago

crouch010 commented 1 week ago

The bug

The problem is that when i press the button WAKE on the Upsnap web interface it doesnt work, i checked with wireshark and i am almost 100% sure that it doesnt send any kind of wol packet onto the network.

I tried what another user said here to use awake command and it workes perfectly fine but when i add the IP Address it stops working.. issue #583

What can be the issue? I belive i ma not the only one.

The OS that UpSnap is running on

Ubuntu Server 22.04.4

Version of UpSnap

4.2.11

Your docker-compose.yml content

version: "3"
services:
  upsnap:
    container_name: upsnap
    image: ghcr.io/seriousm4x/upsnap:4
    networks:
      macvlan:
    restart: unless-stopped
    volumes:
      - /var/lib/docker/volumes/upsnap-data:/app/pb_data
    #environment:
    #  - TZ=Europe/Bucharest
    #dns:
    #  - 192.168.1.12
    #  - 192.168.1.26

networks:
  macvlan:
    external: true

Reproduction steps

1. when using the wol button in the interface.

Additional information

No response

crouch010 commented 1 week ago

Here is the command that the owner said should work (the cmd that upsnap also sends from GUI) image

And the command without the IP that actually works !

image

seriousm4x commented 4 days ago

Looks like you are trying to use the device ip as the broadcast address which is not correct. You need to send the packet to the broadcast address of your network, not the actual device. Try to set 255.255.255.0 as the netmask in device settings in upsnap.

For awake try awake -b 192.168.0.255 -p 9 F4:A8:0D:40:65:9E or awake -d 192.168.0.145 -p 9 F4:A8:0D:40:65:9E

crouch010 commented 2 days ago

Hello, yes thank you. Everything is perfect except one more thing, the shutdown cron doesnt work and as far as i dig into this problem, seems like the time in the UPSNAP is not correct.

How can i fix this ? thank you!