I have a couple of home projects that are centered around Arduinos (one controls custom landscape lighting circuits, and the other monitors HVAC performance). In each case, I control and interact by wifi, using a perlscript (running in Terminal on my laptop), or an Android app (created using MIT App Inventor). All of these send http "get" requests to the Arduino.
Currently, I just use the Arduino's local IP address (192.160.50.xxx). It tends to stay the same but occasionally changes, and this is a bit inconvenient. I've figured out how to make the Arduino request a static IP address, but it seems a better solution is to assign it a hostname.
I've done this in my ASUS router, assigning it a hostname (let's call it "foo"), as well as told it that the name of the local network is "local". So it seems I should be able to access from a browser using http://foo.local . But this doesn't work. The response looks like:
Any idea what is wrong ?
Currently, I just use the Arduino's local IP address (192.160.50.xxx). It tends to stay the same but occasionally changes, and this is a bit inconvenient. I've figured out how to make the Arduino request a static IP address, but it seems a better solution is to assign it a hostname.
I've done this in my ASUS router, assigning it a hostname (let's call it "foo"), as well as told it that the name of the local network is "local". So it seems I should be able to access from a browser using http://foo.local . But this doesn't work. The response looks like:
Code:
This site can’t be reached
Check if there is a typo in foo.local.
DNS_PROBE_FINISHED_NXDOMAIN
Any idea what is wrong ?