Can the network binding be setup to ping a web address? for Example www.google.com?
So far I’ve tried and can’t get it working.
When i put a “fake” one into a thing, it reports back as “online”
network:pingdevice:testpingdevice [ hostname=“www.thisisfakeaddressmilty.com”, port=80, retry=1, timeout=5000, refreshInterval=1800000 ]
Just to be clear, the Switch Item that is linked to that Channel is showing OFF? Or the Thing is showing as ONLINE? If the former we have a problem and the ping isn’t working. If the latter, all that the ONLINE status of the Thing indicates is that the Thing is functioning properly. It does not show the status of the actual network device (or web address in this case).
That’s how ARP works. ARP stands for Address Resolution Protocol and as a protocol it lives low level of the network stack. It provides a mapping between a MAC address and an IP address.
In plain language an ARP request goes something like this:
Requestor: “Hey everyone! Who has IP address 18.104.22.168?”
Everyone on the local area network: “Hmmmm, is that my address? Nope. Am I router? Nope, so I won’t respond.”
The Router: “That’s not my address but I’m a router. Maybe I’m connected to a network that has that address. Yep, that address is on my WAN port.”
The Router: “That’s me! Use my MAC address for packets that need to be sent to 22.214.171.124. I’ll forward them to where it needs to go.”
All of this communication is taking place at the Link layer of the TCP/IP networking stack and it basically helps the hardware on the LAN understand when a packet is destined for that device and to know which device to send packets to. This traffic never leaves the local network, and in some cases it’s even more constrained.
So of course an ARP for Google’s IP address is going to give you the MAC address of your gateway router.