• Contact
  • About Me
  • Privacy Policy
  • Disclaimer
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • 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
    • Bash Scripts
  • 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
September 11, 2025
in Nextcloud
1
NextCloud: Port Forwarding - Essential Ports for Smooth Functionality

NextCloud: Port Forwarding - Essential Ports for Smooth Functionality

0
SHARES
230
VIEWS
Share on FacebookShare on Twitter
Table of Contents
  • NextCloud Port Forwarding for Remote Access
    • Understanding Port Forwarding
    • NextCloud Required Ports for Remote Access
    • NextCloud Talk Required Ports for Remote Access
  • Conclusion

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.

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

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 on Ubuntu 22.04: Step-by-Step Guide

Next Post

MikroTik: Firmware Update with WinBox Application – Manual Approach

neo

neo

Related Posts

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)
Nextcloud

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)

Self-Hosted Nextcloud Hub 10 on Ubuntu – My Top 5 Apps
Nextcloud

Nextcloud: My Top 5 Must-Have Apps

Nextcloud: Manual Upgrade from 25.0 to 26.0 on Ubuntu 22.04
Nextcloud

Nextcloud Manual Upgrade on Ubuntu 22.04: Step-by-Step Guide

Nextcloud: Security Concept with FortiGate Firewall
Nextcloud

Nextcloud: Security Concept with FortiGate Firewall

NextCloud dashboard screenshot
Nextcloud

Nextcloud: How to Upgrade Nextcloud via the Web Interface

Nextcloud: My Experience Collected in 2 Years of Use
Nextcloud

Nextcloud: A Two-Year User Experience Review

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

MikroTik: Firmware Update with WinBox Application - Manual Approach

Comments 1

  1. Anonymous says:
    7 months ago

    Great post. Thanks!

Recommended

Linux Networking: ping, Troubleshooting Network Connectivity

Linux Networking: ping, Troubleshooting Network Connectivity

Fortinet FortiGate Policy Implementation

Fortinet FortiGate Policy Implementation

Automatic Windows Service Monitoring and Restart Script

Automatic Windows Service Monitoring and Restart Script

10+ Useful Linux find Command Examples You Should Know

10+ Useful Linux find Command Examples You Should Know

Host a Website on Raspberry Pi – Real Benchmark Tests

Host a Website on Raspberry Pi – Real Benchmark Tests

Categories

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

Recent News

Automatic Windows Service Monitoring and Restart Script

Automatic Windows Service Monitoring and Restart Script

10+ Useful Linux find Command Examples You Should Know

10+ Useful Linux find Command Examples You Should Know

  • 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
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos

© 2025 defencedev.com - All rights reserved.