After changing the main site URL from IP address to a domain name (the "Site Address" field), it shows the following error when accessing "Network Admin" page:
Error establishing a database connection
It is important to note that the site is accessible via its new URL, however "Network Admin" and all the multisite settings are not.