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.

    Access MagicMirror with HTTP?

    Scheduled Pinned Locked Moved Troubleshooting
    14 Posts 4 Posters 16.9k 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.
    • P Offline
      psteimann
      last edited by

      Hi,

      Can i access MagicMirror via http://? From internal network or from external via Port-forwarding?

      I know about VNC, but searching for a direct access just to show MagicMirrorr…

      1 Reply Last reply Reply Quote 0
      • S Offline
        shashank
        last edited by

        Hi,
        you can access Mirror in internal network using http://192.168.x.x:8080/ and use free no-ip DDNS register your raspberry pi IP with domain name and port forward in your router

        1 Reply Last reply Reply Quote 0
        • P Offline
          psteimann
          last edited by

          Hi,

          Thats what I thought also…in my case, I got the following error in my browser:

          ‘This device is not allowed to access your mirror.
          Please check your config.js or config.js.sample to change this.’

          What kind of entry could be missing?

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @psteimann
            last edited by

            @psteimann said in Access MagicMirror with HTTP?:

            What kind of entry could be missing?

            Look at the very beginning of your config file. The Whitelist section

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • S Offline
              shashank
              last edited by

              hi, Try to include your local IP subnet in the config file
              var config = {
              port: 8080,
              ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.0.1/24”, “192.168.0.1/24”],

              P 2 Replies Last reply Reply Quote 0
              • P Offline
                psteimann @shashank
                last edited by

                @shashank

                OK, it works from my internal network now, just had to change the values to 192.168.1.1./24, thanks for this.

                Before, I tried IpWhitelist: [ ], as documented, but then MM2 was showing a black screen only.

                What I want to do is now to make it accessible from out of my place, so I did a port-forwarding in the router with a dns-service to the pi. But this does not work, same error like before at the local network. Current IP starts with 85… Can I add another entry or just edit one of the 192. value and if yes, which one?

                Thanks!

                Peter

                1 Reply Last reply Reply Quote 0
                • P Offline
                  psteimann @shashank
                  last edited by

                  @shashank

                  I started MM2 with the console now:-) Thanks Mikle1.

                  It works in the local network now as I wrote in the posting above. But I get an issue-report. Is this important?

                  Whoops! There was an uncaught exception…
                  { Error: listen EADDRINUSE :::8088
                  at Object.exports._errnoException (util.js:1050:11)
                  at exports._exceptionWithHostPort (util.js:1073:20)
                  at Server.setupListenHandle [as _listen2] (net.js:1263:14)
                  at listenInCluster (net.js:1304:12)
                  at Server.listen (net.js:1402:7)
                  at new Server (/home/pi/MagicMirror/js/server.js:26:9)
                  at /home/pi/MagicMirror/js/app.js:219:18
                  at loadNextModule (/home/pi/MagicMirror/js/app.js:168:5)
                  at /home/pi/MagicMirror/js/app.js:163:6
                  at Class.loaded (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:19:3)
                  code: ‘EADDRINUSE’,
                  errno: ‘EADDRINUSE’,
                  syscall: ‘listen’,
                  address: ‘::’,
                  port: 8088 }
                  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                  Launching application.

                  Greez Peter

                  ? 1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @psteimann
                    last edited by A Former User

                    @psteimann you are already using port 8088, is there any program which is using that port? Or you executed mm twice at same time. Common pitfall is not killing pm2 and starting another npm (or node serveronly) for test…

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      psteimann @Guest
                      last edited by

                      @Sean Port 8088 is not used by another program and there Is no other port-forwarding to this port.

                      8080 is used by my NAS, so I changed the standard-port to 8088 in the config.js

                      i start mm2 automatically with pm2, thats correct. but I do not start it twice.

                      do you mean to try to start another instance of mm2 with npm start?

                      Thanks!

                      ? 1 Reply Last reply Reply Quote 0
                      • ? Offline
                        A Former User @psteimann
                        last edited by A Former User

                        @psteimann sorry for my poor English. You SHOUD NOT execute twice, before killing pm2.

                        P 1 Reply Last reply Reply Quote 0
                        • P Offline
                          psteimann @Guest
                          last edited by

                          @Sean So you mean I shall kill pm2 and start with npm?

                          how do I kill the pm2-process? If I try to close the pm2-window, it starts again immediately… in the console I guess, but whats the syntax?

                          ? 1 Reply Last reply Reply Quote 0
                          • ? Offline
                            A Former User @psteimann
                            last edited by

                            @psteimann pm2 stop mm

                            P 1 Reply Last reply Reply Quote 0
                            • P Offline
                              psteimann
                              last edited by

                              Ok, that worked so far. stopped mm2 and startet it manually with npm in the console.

                              Errors have gone, great. So is it an issue with pm2?

                              Unfortunately, still no access from outside.

                              link:
                              timesoft.internet-box.ch:8088

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                psteimann @Guest
                                last edited by

                                @Sean

                                OK. it works now

                                I entered a second whitelist entry for the external ip:

                                ip is currently:
                                178.198.19.38

                                so i added ffff:178.198.19.1/24…

                                thanks for help

                                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