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.

    Remote access - VPS

    Scheduled Pinned Locked Moved Troubleshooting
    7 Posts 2 Posters 2.6k Views 2 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
      pepeel
      last edited by

      Hi,
      its possible to remote access to MM?
      I’ve installed it on VPS server, and want to open it in browser.

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        j.e.f.f Project Sponsor Module Developer @pepeel
        last edited by

        @pepeel I’m not exactly sure how it will work with a VPS server, but say you have MM installed on a server on your network, and you want to point you laptop’s browser to it. You need to add you laptop’s IP address to the whitelist in the config file.

        It’s right near the top of the file. Example:

        var config = {
          port: 8080,
          ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.2.100"], // Set [] to allow all IP addresses.
        
        

        You can try adding your external IP address to the whitelist, which may work, but if your IP changes often this may not be practical. if the VPS behaves as if it is in your local network, and not external, then you may be able to make this work but setting a static IP an whatever machine will act as the browser.

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          pepeel @j.e.f.f
          last edited by

          @j.e.f.f Server is not on my network. ipWhitelist dont work.

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            j.e.f.f Project Sponsor Module Developer @pepeel
            last edited by

            @pepeel It’s possible to disable the whitelist altogether, but you may want to weigh the security implications of that. To do so:

            var config = {
               ipWhitelist:  [],
               address: "0.0.0.0",
            

            I’m not 100% sure if you need to specify an actual IP address or if the "0.0.0.0" is sufficient. But apparently the address property is needed if your whitelist is disabled. I found this in another post.

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

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • P Offline
                pepeel @j.e.f.f
                last edited by pepeel

                @j.e.f.f

                Still got this in web browser:
                This device is not allowed to access your mirror.
                Please check your config.js or config.js.sample to change this.

                And: Access denied to IP address: 0.0.0.0/0 on server

                [EDIT]
                I add line:

                ipWhitelist: ["::fff:0.0.0.0/1", "::fff:128.0.0.0/2", "::fff:192.0.0.0/3", "::fff:224.0.0.0/4", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
                

                and now i get: Access denied to IP address: [my ip]

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  j.e.f.f Project Sponsor Module Developer @pepeel
                  last edited by

                  @pepeel Sorry I’m all out of ideas. Hopefully someone else can help you get up and running.

                  1 Reply Last reply Reply Quote 0
                  • 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