Local network access is blocked when two almost identical apps are installed

We are developing an enterprise app that connects to a local server. It uses simple URLSessions. There is a view in the app where you enter the server url (IP address) and a connection check is made.

iOS asks for permission to access the local network. Everything works. If the server is reachable, the connection info is saved.

Recently we encountered a very strange issue: We also have a beta version of this app.

If we first install the normal version on a device, enter the server IP, save, and then install the beta version and do the same there: It does not get a connection (it waits for the timeout).

The strange part is: If I try to configure the connection in the normal version again, it also does not work, it just waits for the timeout.

The really strange part: When I delete the beta version, while the normal version is waiting for its connection, the connection succeeds immediately.

Both versions have a different display name, bundle id. I also tried using a device that is not in our MDM: same problem. Even the iOS version seems to have no impact: I tried on iOS 15, 18 and 26.

Is there an explanation and hopefully also a solution to this problem?

Local network access is blocked when two almost identical apps are installed
 
 
Q