Read the statement by Michael Teeuw here.
How to view MagicMirror from phone
-
I’m wanting to create a MagicMirror that shows commute times to local restaurants. Magic Mirror will be housed on a VM at home, but I am wanting to have a QR code at work for other people at work to view the Magic Mirror on their phones. I’ve tried googling a little bit, but I am new to this and having some trouble finding relative information that’s not the Remote Control module.
I looked at the Remote Control Module, but I don’t want to do admin on the MM from my phone, I just want an easy way to view the mirror from a QR code, is there a way to do that? Unless I missed something on the Remote Control Module that lets me just view the mirror
I’ve tried localhost:8080, but it shows nothing (I have a separate Magic Mirror set up on a raspberry pi 2)
I also tried ipaddress:8080
but it says the same thing
I got the IP address of the pi from ifconfig commandI’m trying to test by using a browser from another computer connected to the same internet. Both the pi and the computer are using ethernet.
-
@Narya so. your home network can’t be seen for outside your home unless you do some extra work
configure your router to allow incoming requests(off by default)
so, let’s say u want users outside your house to use a url like
http://fribble.home.someplace.com:8023
then your router has to pass that request only the machine on your network running MagicMirror on port 8080
this is called port forwarding
now the next challenge is to locate your router on the internet, as connected by your isp.
by default the isps give out addresses via DHCP , and do not register a name for each home/router.
you can find the address using the
https://www.hashemian.com/whoami/
url on your machine running MagicMirror
you can use the ip in your qr, http:ip_address:8023now. ‘most’ of the time your router will retain one IP address. but it CAN abd DOES change
there are services that can map a fixed name to an isp IP address.
I use dyndns.org, and my router keeps the setting up to date. ( a Google search will find other ddns services)then your qr code would use the fixed name and port used in the port mapping.
now, SOME isps don’t allow incoming requests on normal accounts. I’ve had two over the last 20 years that required a special static address account ( for more money)
where would u post your qr for them to use from their phone?