1. 4

    Neat. I generally use icanhazip.com for this purpose. The native JSON is a nice touch!

    1. 10

      The argument I see recently is that while “fruit” is a biological definition, “vegetable” is a culinary one (with no biologically-founded definition of “vegetable”).

      In OO terms, you might consider Tomato a subclass of Fruit, implementing the Vegetable interface.

      1. 1

        And it turns out that “vegetable” is also a legal definition, at least in the US.

      1. 8

        If the point of this is to control your own network, it seems a rather convoluted way to do it. Just setup a MAC filter and don’t hand out DHCP leases to Glass users.

        Letting users connect, then hunting them down afterwards, seems like the kind of thing you would only do if you didn’t control the network. I am reminded of the TV zapper that turns off all the TVs in (e.g.) a sports bar because you want to have a quiet conversation. The owner of said sports bar obviously wants the TVs to be on, that’s why they’re there.

        I am all for banning Glass from your network (house, coffee shop, etc.) but this is a technically poor solution for that particular problem.

        1. 1

          This is for the situation where you don’t control the network, or where you don’t have support for MAC filters for DHCP (e.g., a cheap wifi router). This “attack” is deauthenticating the devices from the network continually, so they’re never able to maintain reliable connectivity.

          For cases where you totally control the network you’re correct, there are much easier ways to block the device.