Skip to content

iOS app can't login to self-hosted Nextcloud instance behind WAF #3988

@stgns

Description

@stgns

On self-hosted Nextcloud server instance that is behind WAF, the iOS application can't login.
The reason is that the iOS app seems to send the request using the IP of the self-hosted instance instead of the FQDN, thus, the WAF blocks the connection as it doesn't allow requests via IP, it only allows FQDN requests.
Of course in the iOS app, we put the FQDN of the instance and not the IP.

This issue doesn't exist on the android app version.

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Put the FQDN address of the self-hosted instance

Expected behaviour

The iOS application should login as expected.

Actual behaviour

The application can't login and throws a connection error popup.

Logs

iOS app doesn't provide any debug logs.

Logs from WAF that is in front of Nextcloud instance informs that the host header reports the instance IP and not the actual hostname, thus, blocking the request.

For example:
In the header of the request it shows:
Host: 'IP-address'

Instead, the Host header should include the actual FQDN of the nextcloud instance

Reasoning or why should it be changed/implemented?

IP-Addresses instead hostnames are not supported in WAF (at least in our implementation).

The iOS app needs to send the actual hostname instead of instance IP.

The android client app works as expected.

Environment data

iOS version: 26.2.1

Nextcloud iOS app version: 7.2.3

Server operating system: debian 12 (bookworm)

Web server: nginx

Database: mariadb

PHP version: 8.3.30

Nextcloud version: Nextcloud Hub 10 (31.0.13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions