Wake on WAN for remote work

pseudo -  
brupala Posted messages 111157 Registration date   Status Member Last intervention   -
Hello everyone, I'm reaching out after a frustrating day trying to turn on my PC remotely using my smartphone.

Here's the current situation: I can turn on my PC and wake it up when my phone is connected via Wi-Fi but not with mobile data.
I'm sending the request to the public IP address of my box (TP-Link 4G router). The box transmits (if I understood correctly) to my PC, which turns on (only via Wi-Fi).

I assume the issue is that my packet is not reaching my box when I send it over the 4G network? I'm not sure if I'm providing enough information for you to assist me.

Thanks in advance.

6 answers

  1. pseudo
     
    Thank you, I will look into it. I also wish I had found the topic earlier, thank you.
    0
  2. kaumune Posted messages 22605 Registration date   Status Contributor Last intervention   5 159
     
    Hi

    With a 4G router (which model exactly), it's not easy ..

    What are you using to send the packet from your smartphone and with which settings in that app? (screenshot please)?

    It’s curious that with your box’s public IP address, it works with your router’s wifi, so in WoL

    Does your router have an option for WakeOnWan?

    If not, have you tried creating a port forwarding to the private IP address of the PC to wake and the port of your app?

    With the WolOn app on my phone, I wake up my PC and/or my NAS using WoL and WOW (Freebox)
    0
  3. pseudooooooooo Posted messages 2 Status Member
     
    I use the "Wake on Lan" app (it really lives up to its name), not much to say about the app's configuration: IP address of the router and MAC address of the PC, it sends on port number 9.



    I couldn't find a WoL function in the router settings, but I assigned a fixed IP address to the PC to wake up, and I also configured a virtual server:
    0
  4. brupala Posted messages 111157 Registration date   Status Member Last intervention   14 453
     
    Hi,
    it's already very difficult to do it on a regular box (problem with port forwarding because it will try to do an ARP first but won't be able to succeed, a static ARP is needed, even though the WAL frame is a broadcast on the LAN), so on a 4G box it's almost impossible, at least in ipv4.
    The WAN IP is usually a private address behind a CGN (operator NAT) from the mobile operator, which provides a shared public IP.
    Only in very expensive professional contracts can you get a public IP address on the 4G box.

    --
    and ... There you go!
    0
    1. pseudooooooooo Posted messages 2 Status Member
       
      Good evening, indeed I believe it's simply because the IPv4 address of my box is not public, so there's no way for my little packet to be delivered to the correct address.
      0
    2. kaumune Posted messages 22605 Registration date   Status Contributor Last intervention   5 159
       
      Hi

      I was waiting for you... ;-)
      0
  5. brupala Posted messages 111157 Registration date   Status Member Last intervention   14 453
     
    it doesn't help and no ipv6 well more on the box, I suppose, but even if there were, not sure that the mobile app handles ipv6 in WOW, that would require revising the protocol and creating a multicast group for WOW ... that's a lot.
    Similarly, the packet would probably reach your box, but it wouldn't know what to do with it even if it addresses an ipv6 that it knows on its lan, or else it would have to decapsulate the ipv6 to make it a simple ethernet broadcast.

    --
    and ... there you go!
    0