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.

    MagicMirror connecting problem..

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 2 Posters 3.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.
    • A Offline
      ahnim
      last edited by

      hi, I am starter of MagicMirror2.
      i want to connect with my own application (Android studio) with my mm2. but my application failed to connecting.
      Logcat (from android studio) told that java.net.ConnectException: failed to connect to /192.x.x.x (port 8080): connect failed: ECONNREFUSED (Connection refused)
      i don’t know why it is…
      could you help me …

      thanks.

      Mykle1M 2 Replies Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @ahnim
        last edited by

        @ahnim

        Try this at the beginning of your config.js for MM:

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

        Create a working config
        How to add modules

        A 1 Reply Last reply Reply Quote 1
        • A Offline
          ahnim @Mykle1
          last edited by ahnim

          @Mykle1 thanks to your reply, i tried it.
          but this time, the error says “NOT FOUND 404”…
          i have tried a lot. but every time says ‘NOT FOUND 404’.
          if you know about it, could you tell me what to do…?
          Thank you very much!

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

            @ahnim said in MagicMirror connecting problem..:

            192.x.x.x (port 8080):

            Make sure you have the correct address of the device that is running the MM software and that MM is running.

            Then, the proper format for the address would be

            EXAMPLE

            192.168.1.100:8080

            Create a working config
            How to add modules

            A 1 Reply Last reply Reply Quote 1
            • A Offline
              ahnim @Mykle1
              last edited by

              @Mykle1 oh i resolve it. your example is so helpful to me. i really thank you.
              i was confused about that address number. .
              but can i ask one more question?
              what can i do for “ACCESS DENIED” in mm2? i resolve “NOT FOUND” problem but i have a “ACCESS DENIED” problem…

              really thank you for your replying TT

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

                @ahnim said in MagicMirror connecting problem..:

                what can i do for “ACCESS DENIED” in mm2?

                I am not sure I know what you mean. You get an “ACCESS DENIED” message when trying to connect to MM2 from another device on the same network?

                In that case:
                EXAMPLE

                This is the very beginning of my config.js file on the machine running MM2.

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

                Then, on another device on your network that has a browser (PC, MAC, laptop, cell phone on wifi, etc), Open the browser and enter the ip address of the machine/device that MM2 is running on. I used my iPhone as an example here, using the Safari browser.
                I entered the address 192.168.1.20:8080 into the Safari browser. That’s the address of my MM2 mirror.
                0_1513634157368_11.png

                If this does not work for you then something else is going on there

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 1
                • A Offline
                  ahnim
                  last edited by

                  OH!!! thank you so much! I followed your tips, and i resolved it…!
                  the problem is about access to the connection.
                  Thank you so, so much.
                  i’m deeply greatful to you for your help!
                  i hope to have a good day!!! :D

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

                    @ahnim said in MagicMirror connecting problem..:

                    OH!!! thank you so much! I followed your tips, and i resolved it…!

                    That is good news, mate. Enjoy your mirror. :-)

                    Create a working config
                    How to add modules

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