• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

http connection denied despite open whiteList

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 539 Views 3 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.
  • K Offline
    Klinge
    last edited by Klinge Mar 13, 2021, 12:14 PM Mar 13, 2021, 12:13 PM

    Hi,

    I tried to connect to my MM via Firefox on Port 8080. By it doesn´t works. I got the error “connection refused”.
    When I tried to connect via telnet I get the error “connection error”.
    But my whiteList is completely open.

    My config is

    var config = {
            address: "localhost",   // Address to listen on, can be:
                                                            // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                                                            // - another specific IPv4/6 to listen on a specific interface
                                                            // - "0.0.0.0", "::" to listen on any interface
                                                            // Default, when address config is left out or empty, is "localhost"
            electronOptions: {
            webPreferences: {
            webviewTag: true
                    }
            },
            port: 8080,
            basePath: "/",  // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
                                            // you must set the sub path here. basePath must end with a /
            ipWhitelist: [],        //**** Set [] to allow all IP addresses
                                                                                                                            // or add a specific IPv4 of 192.168.1.5 :
                                                                                                                            // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                                                                                                            // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                                                                                                                            // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
    
            useHttps: false,                // Support HTTPS or not, default "false" will use HTTP
            httpsPrivateKey: "",    // HTTPS private key path, only require when useHttps is true
            httpsCertificate: "",   // HTTPS Certificate path, only require when useHttps is true
    
            language: "de",
            logLevel: ["INFO", "LOG", "WARN", "ERROR"],
            timeFormat: 24,
    
    

    So I allow all IPs.

    My second MM has the same whiteList. And I can connect.

    It would be fine, when you have some good ideas for me to help.

    Thank you in advance.
    Lars

    F S 2 Replies Last reply Mar 13, 2021, 12:20 PM Reply Quote 0
    • F Offline
      fribse @Klinge
      last edited by Mar 13, 2021, 12:20 PM

      @klinge you are tying it to localhost only? If you do that, you can’t connect to it, it should be 0.0.0.0 or something like that?

      K 1 Reply Last reply Mar 13, 2021, 1:45 PM Reply Quote 1
      • S Offline
        sdetweil @Klinge
        last edited by Mar 13, 2021, 12:50 PM

        @klinge localhost means only apps INSIDE the mm system can connect.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • K Offline
          Klinge @fribse
          last edited by Klinge Mar 13, 2021, 1:47 PM Mar 13, 2021, 1:45 PM

          @fribse That´s it! I thought there must be something simple. I changed it to 0.0.0.0 and it works.

          Thanks to both of you for your help.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          1 / 1
          • First post
            3/4
            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