Is it possible to install nextcloud locally on my home server without using a domain name?

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.3
  • Operating system and version (e.g., Ubuntu 24.04):Apache/2.4.67
    • OMV 7.7.24-7 (kernel Linux 6.12.85+deb12-amd64)
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.67
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • ? I did not set up any reverse proxy
  • PHP version (e.g, 8.3):
    • PHP 8.4.21
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • as soon after deploying
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker-compose (file is copied below)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Hi, I have been searching and reading many posts similar to my question, but none answering it entirely. I installed nextcloud locally on my OMV server using docker-compose and this image: image: nextcloud:latest. It’s working fine, I can access it from my web browser. However, I would like to access nextcloud from my phone using the iOS app (and wireguard when I am away from home) but I am not able to.

When I enter the server address on my phone it tells me that a server with the specified hostname could not be found or it gives a bad request error if I use the IP address.

So am I missing something ? Or is it just not possible to make it work this way and I should just use the AIO image ?

Thank you !

The docker-compose file:

services:
  db:
    image: mariadb:10.11
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: mysqlrootpassword
      MYSQL_DATABASE: nextcloud
      MYSQL_USER: ncuser
      MYSQL_PASSWORD: mysqlpassword
    volumes:
      - db_data:/var/lib/mysql

  app:
    image: nextcloud:latest
    ports:
      - 8585:80
    restart: unless-stopped
    environment:
      SKIP_DOMAIN_VALIDATION: true
      NEXTCLOUD_TRUSTED_DOMAIN: host.lan 192.168.1.0/32
      MYSQL_HOST: db
      MYSQL_DATABASE: nextcloud
      MYSQL_USER: ncuser
      MYSQL_PASSWORD: mysqlpassword
    depends_on:
      - db
    volumes:
      - nextcloud_data:/var/www/html

volumes:
  db_data:
  nextcloud_data:

Steps to replicate it (hint: details matter!):

  1. Deploy on OMV (home server) using the docker-compose file

  2. Connect through to nextcloud on the phone using the iOS app

  3. Fill up the server address with local address (http://192.168.1.13:8585) or with the host name (http://host:8585)

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

=> Configuring PHP session handler...
==> Using default PHP session handler
=> Searching for hook scripts (*.sh) to run, located in the folder "/docker-entrypoint-hooks.d/before-starting"
==> Skipped: the "before-starting" folder is empty (or does not exist)
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.22.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.22.0.3. Set the 'ServerName' directive globally to suppress this message
[Fri May 22 12:15:40.885963 2026] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.67 (Debian) PHP/8.4.21 configured -- resuming normal operations
[Fri May 22 12:15:40.886121 2026] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
192.168.1.52 - - [22/May/2026:12:15:49 +0000] "GET / HTTP/1.1" 302 1377 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0"
192.168.1.52 - - [22/May/2026:12:15:50 +0000] "GET /apps/dashboard/ HTTP/1.1" 200 10034 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0"
192.168.1.52 - - [22/May/2026:12:15:51 +0000] "GET /apps/dashboard/css/dashboard.css?v=84a57246-0 HTTP/1.1" 200 1021 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0"PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Hey @luccas welcome to the Nextcloud community :waving_hand:

simple answer: not recommended!

https://github.com/nextcloud/all-in-one#how-to-run-nextcloud-locally-no-domain-wanted-or-wanting-intranet-access-within-your-lan

Thank you very much, I will look into it !