MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    node serveronly not working

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 4 Posters 5.1k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Jeff
      last edited by

      Hi,
      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?

      Thanks

      1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer
        last edited by

        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

        Please create a github issue if you need help, so I can keep track

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Jeff @strawberry 3.141
          last edited by

          @strawberry-3.141 said in node serveronly not working:

          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

          I was on the raspi

          morozgrafixM 1 Reply Last reply Reply Quote 0
          • C Offline
            creye
            last edited by

            Did you change the ip whitelist?

            strawberry 3.141S 1 Reply Last reply Reply Quote 0
            • strawberry 3.141S Offline
              strawberry 3.141 Project Sponsor Module Developer @creye
              last edited by

              @creye this feature is just available since two weeks and the device the magicmirror is running on is allowed by default

              Please create a github issue if you need help, so I can keep track

              1 Reply Last reply Reply Quote 0
              • morozgrafixM Offline
                morozgrafix Moderator @Jeff
                last edited by

                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 localhost resolves to ip address 127.0.0.1 which is very common. you can also try to enter http://127.0.0.1:8080 in your browser.

                if the above works and after node serveronly is 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.js to make sure your server is running on port 8080

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy