WOL packet sent when htm page is served by httpd?

Discussion in 'Tomato Firmware' started by phdeez, Jun 23, 2010.

  1. phdeez

    phdeez Addicted to LI Member

    Short: Can I have tomato 'do' something if another device requests a page via httpd internally.


    Ok, so here's what I've got:

    • Tomato teddy_bear mod on 520gu
    • Default admin page for tomato moved from port 80 -> 81
    • ANOTHER instance of httpd running on port 80 off of jffs (only 2 static pages are being served)
    • TivoHD pointing to 520gu served page (TivoConnect.htm FWIW) that says 'the media server is over there at ip address <media server>'

    Here's what I'd like to know: Is there a way to send a WOL packet to my media server when my Tivo access the page on the 520gu?

    What already works:
    When my PS3 turns on, I've got a cron job to monitor the log and if my PS3 turns on and requests a dhcp ip address, it sends a WOL packet to my media server, but my Tivo is pretty much always on so I can't monitor the log to send a WOL packet.

    Here's the logical layout:
    If <Tivo MAC/IP Address> goes to http://<tomato>:80/TivoConnect.htm
    Then Send WOL packet to <Media Server MAC>

    Does this even make sense?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice