• Contact
  • About Me
  • Privacy Policy
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
DefenceDev
No Result
View All Result
ADVERTISEMENT
Home Projects Nextcloud

NextCloud: Port Forwarding – Essential Ports for Smooth Functionality and Remote Access

neo by neo
May 27, 2025
in Nextcloud
1
NextCloud: Port Forwarding - Essential Ports for Smooth Functionality

NextCloud: Port Forwarding - Essential Ports for Smooth Functionality

0
SHARES
146
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

NextCloud Port Forwarding for Remote Access

Port forwarding is a critical step to ensure seamless operation and remote access to your private cloud, such as a self-hosted NextCloud instance on an Ubuntu Server. NextCloud, an open-source platform, empowers users to securely manage and access files, contacts, calendars, and more from anywhere. To enable smooth access, especially from external networks, configuring the appropriate ports for forwarding is essential. Understanding which ports are required and how to set them up helps maintain optimal performance while keeping your NextCloud environment secure.

This article will guide you through the ports required for NextCloud to operate efficiently and explain the steps to set up port forwarding on your router. By the end, you’ll have a properly configured network to enable optimal NextCloud functionality.

Understanding Port Forwarding

Port forwarding is a network configuration method that allows external devices to communicate with services on your internal network. For NextCloud to be accessible externally, certain ports must be forwarded from your router to the server running the application. These ports ensure that the web interface, synchronization clients, and other features can operate without interruptions.

ADVERTISEMENT

NextCloud Required Ports for Remote Access

The following ports needs to be open:

  1. NextCloud Application: HTTP/HTTPS Ports:
    • By default, NextCloud uses ports 80 (HTTP) and 443 (HTTPS). Ensure that these ports are open to allow access to the NextCloud web interface.
    • In my case, just port 443 (HTTPS) is opened.

NextCloud Talk Required Ports for Remote Access

NextCloud Talk requires the following ports:

  1. NextCloud Talk: STUN/TURN Ports:
    • NextCloud Talk uses STUN (Session Traversal Utilities for NAT) and TURN (Traversal Using Relays around NAT) servers for establishing direct communication between peers. By default, STUN uses port 3478, and TURN typically uses ports 3478, 5349, or others as specified.
    • The High Performance Backend uses a certain range of ports for WebRTC media connections (20000-40000 by default). A client could be behind a restrictive firewall that only allows connections to port 443, so even if the High Performance Backend is publicly accessible the client would need to connect to a TURN server in port 443, and the TURN server will then relay the packets to the 20000-40000 range in the High Performance Backend.

There is a post on NextCloud Forum related to this topic.

NextCloud Port Forwarding Rule
NextCloud Port Forwarding Rule
NextCloud Talk Open Ports
NextCloud Open Ports

QUESTION?

In my case, even though I approved all these ports, sometimes I don’t receive a notification when I receive a message or a call to the NextCloud Talk application on my phone. Do you have an idea of ​​what still needs to be done?

Enhancing Security for Port Forwarding

While port forwarding enables accessibility, it also opens a pathway into your network. Here are some tips to enhance security:

ADVERTISEMENT
  1. Enable HTTPS Only:
    • Ensure NextCloud operates only over HTTPS to secure all communications.
  2. Restrict Access:
    • Configure your router’s firewall to allow connections only from trusted IP ranges.
  3. Update Regularly:
    • Keep your NextCloud server, plugins, and router firmware up to date to protect against vulnerabilities.

Conclusion

Setting up port forwarding for NextCloud is a crucial step in enabling remote access to your private cloud solution. By understanding the required ports and properly configuring your router, you can ensure secure and seamless operation of your NextCloud server. Additionally, implementing security best practices will help protect your network and data.

ADVERTISEMENT

At this link, you can check my security concept for NextCloud Self Hosted installation with ForitGate firewall.

About The Author

neo

See author's posts

ADVERTISEMENT
Previous Post

Nextcloud: Manual Upgrade from 25.0 to 26.0 on Ubuntu 22.04

Next Post

MikroTik: Firmware Update with WinBox Application – Manual Approach

neo

neo

Next Post
MikroTik: Firmware Update with WinBox Application - Manual Approach

MikroTik: Firmware Update with WinBox Application - Manual Approach

Comments 1

  1. Anonymous says:
    3 months ago

    Great post. Thanks!

Follow Us

  • Trending
  • Comments
  • Latest
MikroTik: Export Configuration in Text File

MikroTik: Export Configuration in Text File

Fortinet FortiGate: Static Route Configuration via GUI and CLI

Fortinet FortiGate: Static Route Configuration via GUI and CLI

Immich: Installation on Ubuntu 22.04

Immich: Installation on Ubuntu 22.04

Fortinet FortiGate Upgrade Path Tool

Fortinet FortiGate Upgrade Path Tool

NextCloud: Port Forwarding - Essential Ports for Smooth Functionality

NextCloud: Port Forwarding – Essential Ports for Smooth Functionality and Remote Access

Organizing and Managing Photos with Immich: Features I Use

Organizing and Managing Photos with Immich: Features I Use

Install Ubuntu 22.04 on Oracle VM Virtual Box

Install Ubuntu 22.04 on Oracle VM Virtual Box

Linux Directories: cd (Change Directory), pwd (Print Working Directory), mkdir (Make Directory)

Linux Directories: cd (Change Directory), pwd (Print Working Directory), mkdir (Make Directory)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Recent News

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

ADVERTISEMENT

DefenceDev Tutorials

defencedev Logo

Whether you’re just starting or looking to expand your skills, I hope you find useful information and engaging discussions here. Let me take you through my journey and the goals behind this space!

Follow Us

Browse by Category

  • Blog
  • Cloud
    • Private
  • Linux Tutorials
    • Bash Scripting Tutorials
    • Commands
    • Networking
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Solutions
    • Docker
  • Video Tutorials
    • MikroTik Videos

Recent News

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

  • Site Map
  • Privacy Policy
  • Facebook Page
  • Disclaimer
  • Contact
  • About Me

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos

© 2025 defencedev.com - All rights reserved.