LogoLogo
DownloadBlog
  • Overview
  • Getting started
    • Meshnet explained
    • How to start using Meshnet
      • Using Meshnet on Windows
      • Using Meshnet on Android
      • Using Meshnet on iPhone/iPad
      • Using Meshnet on macOS
      • Using Meshnet on Linux
      • Using Meshnet on Android TV
    • How to use Meshnet securely
  • Features
    • Linking devices in Meshnet
      • Linking external Meshnet devices on Windows
      • Linking external Meshnet devices on Android
      • Linking external Meshnet devices on iPhone/iPad
      • Linking external Meshnet devices on macOS
      • Linking external Meshnet devices on Linux
      • Linking external Meshnet devices on Android TV
    • Explaining permissions
      • Remote access permissions
      • File sharing permissions
      • Traffic routing permissions
      • Local network permissions
    • Renaming devices in Meshnet
      • Renaming devices on Windows
      • Renaming devices on Android
      • Renaming devices on iPhone/iPad
      • Renaming devices on macOS
      • Renaming devices on Linux
    • Sharing files in Meshnet
      • Sharing files on Windows
      • Sharing files on Android
      • Sharing files on iPhone/iPad
      • Sharing files on macOS
      • Sharing files on Linux
      • Sharing files on Android TV
    • Routing traffic in Meshnet
      • Routing traffic from Windows
      • Routing traffic from Android
      • Routing traffic from iPhone/iPad
      • Routing traffic from macOS
      • Routing traffic from Linux
      • Routing traffic from Android TV
  • How-to guides
    • Gaming
      • How to set up a private Minecraft server with Meshnet
      • How to set up a private Stardew Valley server with Meshnet
      • How to play Quake 3 Arena over Meshnet
      • How to set up a private Team Fortress 2 server with Meshnet
      • How to set up a remote game-streaming server for Moonlight
      • How to set up a Palworld dedicated server
      • How to play Fallout: New Vegas multiplayer over Meshnet
      • How to set up a private Factorio server with Meshnet
    • Remote files and media access
      • How to set up and access shared folders
        • Configure and access shared folders on Windows
        • Configure and access shared folders on macOS
        • Configure and access shared folders on Linux
        • Access shared folders from Android
        • Access shared folders from iPhone/iPad
        • Access shared folders from Android TV
      • How to watch videos over Meshnet using Kodi
      • How to configure and access a Jellyfin media server remotely
      • How to set up a Plex media server and access it remotely
      • How to set up a remote NAS using OpenMediaVault and Meshnet
      • How to set up a remote picture library with LibrePhotos and Meshnet
      • How to use Syncthing for remote continuous file synchronization
      • How to set up a remote Airsonic music server
      • How to set up HTTP File Server for remote file access
      • How to set up a remote audiobook server
      • How to host a remote Kavita e-book server
      • How to set up and remotely access Immich using Meshnet
    • Remote device access
      • How to log in to your PC remotely over Meshnet
        • Connect to a Windows device
        • Connect to a macOS device
        • Connect to a Linux device
      • How to access remote systems over Meshnet using SSH
      • How to access your IP camera over Meshnet
      • How to use Home Assistant remotely over Meshnet
      • How to make secure macOS Time Machine backups from anywhere
      • How to use Ansible over Meshnet
      • How to access files in your NAS from anywhere without compromising its security
      • How to set up a phone as a security camera with remote access
      • How to assign custom host names to Meshnet services using Nginx proxy manager
      • How to use Proxmox VE remotely over Meshnet
      • How to set up a remotely controlled 3D printer
      • How to set up and remotely access a CasaOS server
    • Joint projects
      • How to set up an NGINX web server and remotely access it over Meshnet
      • How to use Nextcloud file syncing with Meshnet
      • How to set up pair programming using tmux
      • How to set up a Visual Studio Code server for remote development over Meshnet
      • How to host a Focalboard server for remote project management
      • How to use Meshnet for multi-screen Node.js development
      • How to use the Multi-user editing plugin in Unreal Engine over Meshnet
      • How to set up a private Mumble voice chat server
      • How to host a private Rocket.Chat server
    • Own VPN server setup
      • How to set up a VPN server through self-hosting or with DigitalOcean
      • How to create a VPN server with Microsoft Azure
      • How to create a VPN server with AWS
      • How to create a VPN server with Google Cloud
      • How to create a VPN server with Linode
      • How to create a VPN server with Hetzner
    • Network protection
      • How to set up your network protection with Pi-hole
      • How to set up your own DNS server
      • How to protect your network with AdGuard Home
      • How to use the self-hosted Whoogle search engine remotely
      • How to set up a VPN router using Meshnet
  • Troubleshooting
    • Common issues on Windows
    • Common issues on Android
    • Common issues on iPhone/iPad
    • Common issues on macOS
    • Common issues on Linux
Powered by GitBook

© 2025 Nord Security. All Rights Reserved.

On this page
  • Introduction
  • Install Docker
  • Create a Nextcloud Docker container
  • Creating a volume
  • Deploying a container
  • Set up Nextcloud
  • Allow Meshnet connections
  • Method 1: Using Docker Desktop
  • Method 2: Using the command line
  • Connect to Nextcloud over Meshnet
  • Method 1: Using Nextcloud software
  • Method 2: Using an internet browser

Was this helpful?

  1. How-to guides
  2. Joint projects

How to use Nextcloud file syncing with Meshnet

Learn how to deploy a Nextcloud Docker container for remote file syncing over Meshnet.

PreviousHow to set up an NGINX web server and remotely access it over MeshnetNextHow to set up pair programming using tmux

Last updated 11 months ago

Was this helpful?

Introduction

is a free and open-source online collaboration platform. It offers a wide range of tools and applications, such as file sharing and synchronization, calendar, tasks, and workflow integrations. Nextcloud is scalable from personal use to enterprise-level environments.

In standard configurations, to share your Nextcloud servers with remote devices, you must set up public domain names and SSL certificates or port forwarding, which can be both expensive and time-consuming.

With , you can forget about the difficult networking procedures. With only a couple of tweaks to the Nextcloud configuration, your Meshnet peer devices can access the server over encrypted, private network tunnels without exposing Nextcloud to the internet.

While Nextcloud can be set up using various methods, such as a or a , this article will show you how to run Nextcloud in a and access it over Meshnet.

Install Docker

To begin the configuration, you must have Docker installed on your device. Instructions on how to download and install Docker can be found on the Docker website:

Create a Nextcloud Docker container

After installing Docker on your system, you have the ability to deploy various applications and services as Docker containers. Now you can proceed with creating your Nextcloud container.

Creating a volume

Method 1: Using Docker Desktop

This method utilizes the Docker Desktop application to create a volume for the Nextcloud Docker container.

  1. Open the Docker Desktop application.

  2. From the menu on the left, select Volumes.

  3. Click the Create button in the upper-right corner.

  4. Name it nextcloud and click Create.

  5. The newly created volume will now be visible in the Volumes section.

Method 2: Using the command line

This method shows you how to create a volume for your Nextcloud Docker container via the command line.

  1. Open Command Prompt (on Windows) or Terminal (on Linux or macOS).

  2. Run the following command to create a volume called nextcloud:

    docker volume create nextcloud

If the creation was successful, you will see the name of your volume in the command line window.

Deploying a container

Once the volume has been created, you can deploy the Nextcloud container itself.

  1. Open Command Prompt.

  2. Execute the following docker run command:

    docker run -d ^
    --name nextcloud ^
    --restart=unless-stopped ^
    -p 8080:80 ^
    -v nextcloud:/var/www/html ^
    nextcloud
  1. Open Terminal.

  2. Execute the following docker run command:

    docker run -d \
    --name nextcloud \
    --restart=unless-stopped \
    -p 8080:80 \
    -v nextcloud:/var/www/html \
    nextcloud

Set up Nextcloud

With the container up and running, your Nextcloud service is listening on port 8080 (unless changed in the docker run command). To complete the initial configuration, do the following:

  1. Open your internet browser and visit this URL: http://localhost:8080/

  2. Finish the setup procedure by following the on-screen instructions.

Now, you have a fully customizable Nextcloud instance.

Allow Meshnet connections

At this time, Nextcloud is only reachable from the host device. You need to adjust its configuration file to allow connections over Meshnet.

Method 1: Using Docker Desktop

This method uses the built-in terminal in Docker Desktop to make changes.

  1. Open Docker Desktop and click your Nextcloud container entry.

  2. Switch to the Terminal tab.

  3. Run the following command to update the repository list, install Nano, and open the config.php file using Nano:

    apt update && apt install nano && nano config/config.php

  4. Locate the trusted_domains array and append the following two lines, where <NordName> is the host device’s Nord name and <MeshnetIP> is the host device’s Meshnet IP address:

    1 => '<NordName>',
    2 => '<MeshnetIP>',

    Example

  5. Press Ctrl + X, Y, and Enter to save changes and exit.

  6. Restart the Nextcloud container to apply the changes by clicking the restart button in Docker Desktop.

Method 2: Using the command line

This method uses Nextcloud’s built-in command-line interface called occ.

  1. Open Command Prompt (on Windows) or Terminal (on Linux or macOS).

  2. Add new trusted domains by executing the following two commands, where <NordName> is the host device’s Nord name and <MeshnetIP> is the host device’s Meshnet IP address:

    docker exec -u www-data -it nextcloud php occ config:system:set trusted_domains 1 --value=<NordName>
    
    docker exec -u www-data -it nextcloud php occ config:system:set trusted_domains 2 --value=<MeshnetIP>

    Example

  3. Check if the Nord name and Meshnet IP address have been assigned by running this command:

    docker exec -u www-data -it nextcloud php occ config:system:get trusted_domains

  4. Restart the Nextcloud container to apply the changes.

    docker restart nextcloud

Connect to Nextcloud over Meshnet

After adding the Meshnet addresses to the trusted domains, your Nextcloud instance can be reached by Meshnet peer devices.

Note

Method 1: Using Nextcloud software

To use file syncing between different machines, you need to install the Nextcloud application on client devices.

Note

Folder synchronization is possible only on desktop devices. On mobile devices, you can only upload and download files manually.

  1. Launch Nextcloud and click Log in.

  2. In the server address field, enter http://, followed by the Nord name of the host device, and :8080.

  3. Click Next and proceed with the login procedure.

Nextcloud settings can now be accessed from the system tray (on Windows) and the menu bar (on macOS or Linux).

Tip

  1. Download and install the Nextcloud application on your device.

  2. Open Nextcloud and tap Log in.

  3. In the server address field, enter http://, followed by the Nord name of the host device and :8080.

  4. Log in to your Nextcloud account.

Now you have full access to the Nextcloud interface directly from the application.

Method 2: Using an internet browser

To access the Nextcloud dashboard via a browser, do these steps:

  1. Copy the Nord name of the host device from the NordVPN application.

  2. Open your internet browser.

  3. Paste the copied Nord name followed by :8080/ to the URL field and press Enter. Example secret.meerkat-everest.nord:8080/

  4. Log in to your account.

Now you can freely navigate your Nextcloud from a remote device. You can view, upload, or remove files and use all other applications inside Nextcloud.

First, you need to create a specific (directory) where the container’s files will be stored.

Docker will from Docker Hub and create the container.

Docker will from Docker Hub and create the container.

Enter authentication details for your admin account, select the preferred database, and click Install.

If you're hosting Nextcloud on a Linux device, you must grant the for the devices accessing it. For more information, see .

Download and install the Nextcloud application from the .

Example http://secret.meerkat-himalayas.nord:8080

Select your folder synchronization options and click Connect.

For ease of use, you may download the Nextcloud application from the on compatible Linux distributions.

Example http://secret.meerkat-himalayas.nord:8080

Nextcloud
Meshnet
virtual machine
standalone operating system
Docker container
Docker Desktop instructions for Windows
Docker Desktop instructions for macOS
Docker Desktop Instructions for Linux (application with a GUI)
Docker Engine instructions for Linux (CLI only)
Docker volume
pull the Nextcloud image
pull the Nextcloud image
Nextcloud website
Snap Store
For Android
For iOS
local network permission
Docker Desktop application
Nextcloud dashboard
Nord name and Meshnet IP address added to the 'trusted domains' array
Adding trusted domains using occ
List of trusted domains
Nextcloud login page
Nextcloud file list
Common issues on Linux