Accessibility from inside / outside home network

I have an interesting error with the Android client. My OwnCloud installation runs on an Apache2 server on my raspberry at home. Following situation:

OwnCloud is fully accessible from outside of my home network:

https://network_provided_uri:port/owncloud - works in browser on phone, PC and Windows client
https://network_provided_uri:port/owncloud - works on Android client

From inside the home network I have the following issue:

https://network_provided_uri:port/owncloud - works in browser on phone, PC and Windows client
https://network_provided_uri:port/owncloud - does not work on Android client
https://local_IP_of_raspberry:port/owncloud - works on Android client

There seems to be an issue with the android client. I don’t see any errors, except that the host cannot be reached. As a workaround I’ve added another account with the local IP of the server, but I have to switch every time I change networks.

Is this phone an iPhone or the same android phone?

Yes, it’s the same android device. The URL works in the browser, but not in the app.