• 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.

Listening to only 127.0.0.1:8080...

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 3.1k 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.
  • S Offline
    Snille Module Developer
    last edited by Snille Jul 16, 2017, 2:38 PM Jul 16, 2017, 2:30 PM

    Hi all,
    At last update, it seams the MM only listens to 127.0.0.1:8080 if I have set [] in the ipWhitelist.

    Here is the “start” of the mirror:

    [STREAMING] Now streaming realtime logs for [all] processes
    0|mm       | Starting MagicMirror: v2.1.3-dev
    0|mm       | Loading config ...
    0|mm       | Loading module helpers ...
    0|mm       | Initializing new module helper ...
    ...
    

    All is starting ok and the mirror shows up on the local screen.
    But it’s not available from any other IP.

    The start of my conf…

    var config = {
            port: 8080,
            ipWhitelist: [],
            language: "sv",
            timeFormat: 24,
            units: "metric",
    

    And the listing ports (IPs) with netstat:

    pi@MagicMirror:~ $ netstat --tcp --listening --programs --numeric
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      3486/electron.js
    ... (removed the other ports in the list) ...
    pi@MagicMirror:~ $
    

    As you can see it’s only listening on 127.0.0.1:8080…
    What have I missed/done?

    I can no longer access the /remote.html (for example) or any other “service” on the mirror from another machine.

    Best regards Snille

    If you cant find it, make it and share it!
    Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

    1 Reply Last reply Reply Quote 0
    • C Offline
      Cato Module Developer
      last edited by Jul 18, 2017, 7:33 PM

      It seems that you need to specify an IPv4 “address” in config, like this:

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

      Worked for me…

      S 1 Reply Last reply Jul 18, 2017, 8:33 PM Reply Quote 2
      • S Offline
        Snille Module Developer @Cato
        last edited by Jul 18, 2017, 8:33 PM

        @Cato said in Listening to only 127.0.0.1:8080...:

        address: “0.0.0.0”,

        Ah! Thank you! :) Worked!

        If you cant find it, make it and share it!
        Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

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