MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Remote access - VPS



  • Hi,
    its possible to remote access to MM?
    I’ve installed it on VPS server, and want to open it in browser.


  • Module Developer

    @pepeel I’m not exactly sure how it will work with a VPS server, but say you have MM installed on a server on your network, and you want to point you laptop’s browser to it. You need to add you laptop’s IP address to the whitelist in the config file.

    It’s right near the top of the file. Example:

    var config = {
      port: 8080,
      ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.2.100"], // Set [] to allow all IP addresses.
    
    

    You can try adding your external IP address to the whitelist, which may work, but if your IP changes often this may not be practical. if the VPS behaves as if it is in your local network, and not external, then you may be able to make this work but setting a static IP an whatever machine will act as the browser.



  • @j.e.f.f Server is not on my network. ipWhitelist dont work.


  • Module Developer

    @pepeel It’s possible to disable the whitelist altogether, but you may want to weigh the security implications of that. To do so:

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

    I’m not 100% sure if you need to specify an actual IP address or if the "0.0.0.0" is sufficient. But apparently the address property is needed if your whitelist is disabled. I found this in another post.



  • This post is deleted!


  • @j.e.f.f

    Still got this in web browser:
    This device is not allowed to access your mirror.
    Please check your config.js or config.js.sample to change this.

    And: Access denied to IP address: 0.0.0.0/0 on server

    [EDIT]
    I add line:

    ipWhitelist: ["::fff:0.0.0.0/1", "::fff:128.0.0.0/2", "::fff:192.0.0.0/3", "::fff:224.0.0.0/4", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
    

    and now i get: Access denied to IP address: [my ip]


  • Module Developer

    @pepeel Sorry I’m all out of ideas. Hopefully someone else can help you get up and running.