• November 01, 2024, 05:19:21 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Use DNS-320L remotely to wake up local computers  (Read 8289 times)

DeshMindER

  • Guest
Use DNS-320L remotely to wake up local computers
« on: July 19, 2016, 10:38:55 AM »

Hi.

I was wondering if thereīs a way to remotely access the DNS-320L, so I can send a magic packet to my network to wake up a specific computer?

My modem/router doesnīt keep the record of the MAC address under ARC, so Iīm unable to do this directly from the Internet.

I know that my DNS-320L will have to always be on for this.
« Last Edit: July 21, 2016, 09:06:56 PM by DeshMindER »
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: Use DNS-320L remotely to wake up local computers
« Reply #1 on: July 19, 2016, 12:08:28 PM »

First thing why try the hard way when Wake on Lan should do the job directly.

The WOL magic packet is sent to the complete lan and only the computer with the correct MAC address will use it.

The only thing your router/modem needs to do is pass the magic packet to your network, the computer is what actually does the work.

Have a look at http://www.howtogeek.com/70374/how-to-geek-explains-what-is-wake-on-lan-and-how-do-i-enable-it/ to get how it works.
Logged

DeshMindER

  • Guest
Re: Use DNS-320L remotely to wake up local computers
« Reply #2 on: July 19, 2016, 12:43:02 PM »

Thank you Ivan for the reply.

My router does not keep the ARC table that contains the MAC address long after the specific computer is off. So it doesnīt where to send it.

Iīm able to send to all the lan if iīm local, but I want to do it from the Internet. Iīve tried forwarding the port from my modem/router to 192.168.0.255 but that didnīt work.

What I did get to work is:
1. Set static ip on computer, say 192.168.0.8
2. Forward port 7 on the modem/router to 192.168.0.8
3. Turn off the computer
4. When I send the magic packet thru the internet, it works.... but if the computer is offline for some hours, the arc table is clear and it doesn~t work over the internet anymore.

This limitation is on my cable modem/router, which I am not able to manually set an entry on the arc table, for that specific MAC address.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Use DNS-320L remotely to wake up local computers
« Reply #3 on: July 19, 2016, 12:48:30 PM »

A suggestion from the router pool...
1. Can the ISP modem/router be bridged? if so, bridge it and get a router that is able to keep the device table going for you.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

DeshMindER

  • Guest
Re: Use DNS-320L remotely to wake up local computers
« Reply #4 on: July 19, 2016, 01:25:37 PM »

Unfortunately it canīt. My ISP has a custom firmware on it, which disables that option.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Use DNS-320L remotely to wake up local computers
« Reply #5 on: July 19, 2016, 01:48:59 PM »

Does it happen to have DMZ that you have access too?
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: Use DNS-320L remotely to wake up local computers
« Reply #6 on: July 20, 2016, 03:26:38 AM »

A few comments.

1) you must set WOL active in the bios of your computer
2) the router does not issue the magic packet to a specific MAC address - it only has to send it out to the network.
3) it is the computer that has to have the NIC live to be able to receive the magic packet and so activate the WOL feature to bring the computer out of sleep.
4) your example requires the router to know where to send the magic packet which is not required if you use WOL correctly.

I can wake any computer at work from home and frequently do to check the status of projects.  We do not have a router at work, it is replaced by an internet modem and several linked managed switches (DHCP service is supplied by our e-mail server).  All of our computers are never turned off but go into sleep mode and all have WOL aware NICs and WOL set active in bios.

All I can say is it works for us and should work for you.
Logged

DeshMindER

  • Guest
Re: Use DNS-320L remotely to wake up local computers
« Reply #7 on: July 20, 2016, 11:49:43 AM »

A few comments.

1) you must set WOL active in the bios of your computer
2) the router does not issue the magic packet to a specific MAC address - it only has to send it out to the network.
3) it is the computer that has to have the NIC live to be able to receive the magic packet and so activate the WOL feature to bring the computer out of sleep.
4) your example requires the router to know where to send the magic packet which is not required if you use WOL correctly.

I can wake any computer at work from home and frequently do to check the status of projects.  We do not have a router at work, it is replaced by an internet modem and several linked managed switches (DHCP service is supplied by our e-mail server).  All of our computers are never turned off but go into sleep mode and all have WOL aware NICs and WOL set active in bios.

All I can say is it works for us and should work for you.

1) Yes, it is working from the internal network
2) I know
3) Yep
4) Not really where to send it, but to forward the port to the right direction

My issue is that the MAC address of my WOL client computer won't be in the router's ARP table because, as the WOL client is powered-off, such an ARP entry would have aged out. When my router receives an IP packet port-forwarded to the WOL client's IP address while the WOL client is powered-off and its MAC address is aged out of the ARP table the router will not be able to deliver the packet to the client. I would need a router with static ARP capability to make this work.

The broadcast from the internet is less likely, since I don't have a public subnet behind my router, but rather I am using NAT to share a single public IP address on my LAN, there's no way to remotely address a packet to the subnet-broadcast address of my LAN subnet such that the router (if it could forward directed broadcasts) would generate a layer 2 broadcast with the WOL packet to allow the WOL client to "see" it.

Your DHCP server most likely keep a record out of this. How do you wake the computers from work? In order for you to broadcast, you need to remote access a computer and do it from it or connect to VPN.
Logged

DeshMindER

  • Guest
Re: Use DNS-320L remotely to wake up local computers
« Reply #8 on: July 21, 2016, 09:38:26 PM »

I actually figure out a way!

1. Made SSH available online
2. Installed python v2
3. Got a python script (http://code.activestate.com/recipes/358449-wake-on-lan)
4. Connect from my Android phone under 4G using JuiceSSH
5. Run the script with my MAC ADDRESS

It broadcasts from my NAS locally to my network!  8) 8)

Step 5:


Confirming that it works:


Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: Use DNS-320L remotely to wake up local computers
« Reply #9 on: July 22, 2016, 07:03:22 AM »

Good.

I notice that you have just proved that your router has nothing to do except pass the MAC address.

My service department setup an experiment with 4 computers and a gigabit dumb switch - no DHCP or fixed IP address.  Using one computer they were able to wake any one or all three of the others using our WOL server program and a list of MAC addresses, just as is supposed to happen.
I can't say if this would work with windows based PCs because we exclusively use the IBM OS/2 operating system which we have noticed can do things that windows can't.

What you have done is to use your NAS as the WOL server to inject the magic packet into the network looking fot the provided MAC address.  By using SSH as access you have bypassed the need for a dedicated WOL server program on your phone and opening up the necessary ports (UDP 7 and 9) in your modem/router firewall.

Again, congratulations, you have achieved your aim but above all have posted t here so that it can be of use to others.
Logged