node serveronly not working
I try to reach my MM on serveronly mode.
The command says : Ready to go! Please point your browser to: http://localhost:8080
But when I go to http://localhost:8080
the browser says: Not reachable
("Diese Website ist nicht erreichbar
localhost hat die Verbindung abgelehnt.")
What do I have to do?
localhost will only work if you’re trying to access the site on the raspberry itself, on a diferent device you have to replace localhost with the ip of the raspberry
Did you change the ip whitelist?
@creye this feature is just available since two weeks and the device the magicmirror is running on is allowed by default
I realize that this topic is about 2 months old, but I’m going to add some possible troubleshooting steps for anyone who may run into this problem. Hopefully OP already has this resolved.
@Jeff while on RasPi terminal can you try to execute this command
ping localhost? you should see output similar to this:
$ ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.253 ms 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.268 ms 64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.257 ms ... ...
as you can see hostname
localhostresolves to ip address
127.0.0.1which is very common. you can also try to enter
http://127.0.0.1:8080in your browser.
if the above works and after
node serveronlyis running, can you please try to execute following command
curl -I http://localhost:8080? your output should be similar to this:
$ curl -I http://localhost:8080 HTTP/1.1 200 OK X-Powered-By: Express Accept-Ranges: bytes Cache-Control: public, max-age=0 Last-Modified: Wed, 21 Dec 2016 06:49:47 GMT ETag: W/"8da-15920249be6" Content-Type: text/html; charset=UTF-8 Content-Length: 2266 Date: Sun, 15 Jan 2017 23:09:37 GMT Connection: keep-alive
if it’s not double check your
config.jsto make sure your server is running on port 8080