Read the statement by Michael Teeuw here.
Browser access in LAN not working
-
Hi there,
I was running MM in an older Version, somewhere from June and it was fine. I Tried to update with “git pull” but got errors, So out of performance reason I decided to do a fresh installation of MM. I renamed the old MM directory and installed the latest v2.1.3.
I’ve installed all my old modules and used my old config as well. Everything was working fine except MMM-Remote-Control.
I figured out that I don’t have access to MM via my Browser as well e.g http://RaspberryIP:8080. When I try so I get a “access denied” error in my Browser ( Firefox, Opera, Vivaldi) Even when am via VNC connected to the Rapberry starting a Browser there. Only localhost:8080 is working.I don’t get any errors in mm-error log.
I already installed a second MM with 2.1.3 on a different Pi but still the same problem. No access to MM via my Browser. Any idea what to do?
mm- out:
> magicmirror@2.1.3 start /home/pi/MagicMirror > sh run-start.sh Starting MagicMirror: v2.1.3 Loading config ... Loading module helpers ... No helper found for module: alert. No helper found for module: clock. Initializing new module helper ... Module helper loaded: calendar No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... Module helper loaded: MMM-Remote-Control Initializing new module helper ... Module helper loaded: MMM-DWD-WarnWeather Initializing new module helper ... Module helper loaded: MMM-PNews Initializing new module helper ... Module helper loaded: newsfeed Initializing new module helper ... Module helper loaded: internet-monitor Initializing new module helper ... Module helper loaded: MMM-MovieListings Initializing new module helper ... Module helper loaded: MMM-Fuel Initializing new module helper ... Module helper loaded: MMM-NetworkScanner Initializing new module helper ... Module helper loaded: MMM-nasaastropic Initializing new module helper ... Module helper loaded: MMM-SystemStats No helper found for module: MMM-Carousel. Initializing new module helper ... Module helper loaded: MMM-Events Initializing new module helper ... Module helper loaded: MMM-xiaomi All module helpers loaded. Starting server on port 8080 ... You're using a full whitelist configuration to allow for all IPs Server started ... Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: MMM-Remote-Control Starting node helper for: MMM-Remote-Control Connecting socket for: MMM-DWD-WarnWeather MMM-DWD-WarnWeather helper started... Connecting socket for: MMM-PNews Starting module: MMM-PNews Connecting socket for: newsfeed Starting module: newsfeed Connecting socket for: internet-monitor internet-monitor helper started ... Connecting socket for: MMM-MovieListings MMM-MovieListing helper started... Connecting socket for: MMM-Fuel Starting module helper: MMM-Fuel Connecting socket for: MMM-NetworkScanner Starting module: MMM-NetworkScanner Connecting socket for: MMM-nasaastropic Starting node helper: MMM-nasaastropic Connecting socket for: MMM-SystemStats Connecting socket for: MMM-Events Starting node_helper for: MMM-Events Connecting socket for: MMM-xiaomi Starting xiaomi helper Sockets connected & modules started ... Launching application. Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/htc.one.m2304%40gmail.com/private-14fa662585128c24fef964b020903be5/basic.ics - Interval: 300000 Create new news fetcher for url: http://www.haz.de/rss/feed/haz_schlagzeilen - Interval: 300000 Create new news fetcher for url: http://www.spiegel.de/schlagzeilen/index.rss - Interval: 300000 starting internet monitor node helper MMM-NetworkScanner received CONFIG astro helper: config received retrieveAndUpdate() Triggering Xiaomi Gateway upate NASA Astro Pic of the Day URL: https://apod.nasa.gov/apod/image/1711/Jet67P_Rosetta_960.jpg Found device with ID 158d000119fcb2 of type magnet Found device with ID 158d00013e28ee of type power-plug Found device with ID 158d00015aa973 of type controller Found device with ID 158d00015736a8 of type sensorMy config ( I have removed all the config entrys from modules to keep it more clearly here) :
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ var config = { port: 8080, ipWhitelist: [], language: 'de', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { module: 'clock', position: 'top_left' }, { module: 'calendar', }, { module: 'currentweather', }, { module: 'weatherforecast', }, { module: 'MMM-Remote-Control', // uncomment the following line to show the URL of the remote control on the mirror //position: 'bottom_left' // you can hide this module afterwards from the remote control itself }, { module: 'MMM-DWD-WarnWeather', }, { module: 'MMM-PNews', }, { module: 'newsfeed', }, { module: 'internet-monitor', }, { module: 'MMM-MovieListings', }, { module: 'MMM-Fuel', }, { module: 'MMM-NetworkScanner', }, { module: 'MMM-nasaastropic', }, { module: 'MMM-SystemStats', }, { module: 'MMM-Carousel', }, { module: 'MMM-Events', }, { module: 'MMM-xiaomi', }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}Browserdebug on the localhost:8080
main.js:404 Initializing MagicMirror. translator.js:197 Loading core translation file: translations/de.json translator.js:219 Loading core translation fallback file: translations/en.json loader.js:182 Load script: modules/MMM-Remote-Control//MMM-Remote-Control.js module.js:406 Check MagicMirror version for module 'MMM-Remote-Control' - Minimum version: 2.1.0 - Current version: 2.1.3 module.js:408 Version is ok! module.js:414 Module registered: MMM-Remote-Control loader.js:152 Bootstrapping module: MMM-Remote-Control loader.js:157 Scripts loaded for: MMM-Remote-Control loader.js:197 Load stylesheet: modules/MMM-Remote-Control/remote-control.css loader.js:159 Styles loaded for: MMM-Remote-Control loader.js:161 Translations loaded for: MMM-Remote-Control loader.js:197 Load stylesheet: css/custom.css MMM-Remote-Control.js:21 Starting module: MMM-Remote-Control main.js:422 All modules started! -
Add
address: "0.0.0.0",to your config:var config = { port: 8080, address: "0.0.0.0", ipWhitelist: [], // Set [] to allow all IP addresses. language: "en", timeFormat: 12, units: "imperial", -
I’ve tried
address: "Localhost",already without luck, but
address: "0.0.0.0",is working for me!
You made my day! Thank you!
-
@Albert2002 said in Browser access in LAN not working:
You made my day! Thank you!
Excellent! You are welcome. :-)
Maybe localhost (lower case)?
-
I can confirm that
address: "localhost"does not allow access from LAN. That is specifying the interface. So it need to be an interface facing your ethernet/wlan, i.e. “0.0.0.0” (any iface).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login