“Requires Persistent WiFi” and “Allow downloads over HTTP (nonsecure)” was already enabled for iOS build. Double checked that “NSAllowsArbitraryLoads” and “UIRequiresPersistentWiFi” are set in the info.plist.
Network connectivity isn’t the issue either. Tried pinging before connecting to the database and I get the same results on all platforms.
The fact that it connects to a LAN database but not a WAN one only on iOS/Mac certainly points to security policies but I can’t see which setting might be missing.