Read the statement by Michael Teeuw here.
MagicMirror connecting problem..
-
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.
-
Try this at the beginning of your config.js for MM:
var config = { address: "0.0.0.0", port: 8080, ipWhitelist: [],
-
@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! -
@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
-
@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
-
@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:
EXAMPLEThis 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 address192.168.1.20:8080
into the Safari browser. That’s the address of my MM2 mirror.
If this does not work for you then something else is going on there
-
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 -
@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. :-)