Giter Site home page Giter Site logo

wakeonlan's Issues

permit hostname for mac addr argument, resolved via /etc/ethers

It would be nice if we could specify a hostname in place of the MAC address argument, and for wakeonlan to attempt to look this up via nss/nsswitch/the ethers db (e.g. /etc/ethers).

Note that this would be to resolve a hostname to a MAC address, not to specify an IP for the WOL packet.

Examples

$ getent ethers coil
e0:4f:43:e6:2b:36 coil
$ wakeonlan $(getent ethers coil | awk '{ print $1 }')
Sending magic packet to 255.255.255.255:9 with e0:4f:43:e6:2b:36

getent(1) implies that the libc function to do this correctly is ether_hostton.

Unable to use DNS name for ip_address argument

In 0.42 version of wakeonlan, when trying to input my DNS name as the ip_address argument, it returns :

Invalid default IP address: (name of my DNS address).
With the same parameters on wakeonlan 0.41, it works like a charm instead. What changed? It seems that now ip_address argument only accepts digits.

Schermata 2022-04-23 alle 00 55

Unable to use public IPv6 for ip_address argument

When I attempt to use my server's public IPv6 ip address as an option for the script, I get the following error:

Use of uninitialized value in subroutine entry at /usr/local/bin/wakeonlan line 75.
Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/local/bin/wakeonlan line 75.

It looks as though using the IPv6 ip is not supported by the script at this time. Is that a feature that needs to be added, or am I using the script incorrectly?

Note: The script works correctly when using no ip_address argument or my local ip address

Possible to send "turn off" packet?

Hi there,

Thanks for sharing this amazing tool. Is there a supported way to send "turn off" commands to a MAC address using this or any other tool that you know of?

Thank you,
Tony

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.