Hi i have angular application converted to apk using ionic capacitor but now i want to save iis server ip address (router local ip address) in apk file dynamically because it might be changes after reconnect to internet. Please help me.
Sounds like you should use Dynamic DNS (DDNS). You app points to a FQDN and your router updates the associated IP address in your DNS.
“I do not want to access my IIS server remotely using DDNS. Instead, I want to connect to an IIS server that is on the same local network as the mobile app. Each client using this mobile app will connect to their own local IIS server within their respective networks. Is there a way to use a domain name for local network access regardless of the local IP address?”
Since IIS is involved, assuming you are dealing with a Windows Domain? You can use the FQDN of the IIS server and the Windows DNS server will resolve it.
For that matter, the router on the network should resolve the FQDN of the IIS server to it’s IP even if not a full Windows environment.
I would design the app so upon first launch, the user inputs the IIS server to be used.