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.

    Cannot access MM2 across the network - localhost ok

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 2 Posters 39 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.
    • S Offline
      sdetweil @dangerousden
      last edited by sdetweil

      @dangerousden this error is reported when there are 2 commas in a row between modules

            },,
            {
                module: "foo",
      

      the next release shows this error in detail,

       Your configuration file contains syntax errors :(
      Line 1726 column 9: Unexpected comma in middle of array.
      

      node -c doesn’t report it

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 3 Replies Last reply Reply Quote 0
      • D Offline
        dangerousden @sdetweil
        last edited by

        @sdetweil Thank you for your prompt response. Apologies that mine is not so prompt. I didn’t get notifications about your reply.

        Node -c config.js didn’t seem to do anything. It just returned to CLI

        I’m having problems copying the config.js via Pi Connect, so I will get back to you when I return home.

        TIA

        1 Reply Last reply Reply Quote 0
        • D Offline
          dangerousden @sdetweil
          last edited by

          @sdetweil

          As soon as you pointed out the double comma, I spotted it. Amazing how despite 2 hours of double checking, I missed that I had left a comma before a {

          thank you, that has resolved the config error, but I still don’t have access via IP, just localhost

          1 Reply Last reply Reply Quote 0
          • D Offline
            dangerousden @sdetweil
            last edited by

            Regarding my failure to access MM via IP, but only localhost, does this mean anything to anyone??
            I have installed VNC, so am wondering if this is causing problems

            ![alt text](Screenshot 2025-12-15 154505.png image url)

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @dangerousden
              last edited by

              @dangerousden

              my startup info is

              ####  System Information  ####
              - SYSTEM:   manufacturer: System manufacturer; model: System Product Name; virtual: false; MM: 2.34.0-develop
              - OS:       platform: linux; distro: Ubuntu; release: 22.04.5 LTS; arch: x64; kernel: 5.15.0-160-generic
              - VERSIONS: electron: 38.1.2; used node: 22.19.0; installed node: 22.21.1; npm: 10.9.4; pm2: 6.0.13
              - ENV:      XDG_SESSION_TYPE: x11; MM_CONFIG_FILE: undefined
                          WAYLAND_DISPLAY:  undefined; DISPLAY: :0.0; ELECTRON_ENABLE_GPU: undefined
              - RAM:      total: 48077.12 MB; free: 22026.83 MB; used: 26050.29 MB
              - OTHERS:   uptime: 79391 minutes; timeZone: America/Chicago 
              

              running with built in browser (Electron)

              you are using node 24, I am using node 22. but that shouldn’t matter…

              you should see these messages a few lines back from the info

              [2025-12-15 15:13:31.921] [LOG]   [server] Starting server on port 8090 ...  
              [2025-12-15 15:13:31.922] [WARN]  [server] You're using a full whitelist configuration to allow for all IPs 
              [2025-12-15 15:13:31.935] [LOG]   [app] Server started ..
              

              this will tell you the port and if there is a whitelist

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              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