Are you using the same url (https:\mail.mydomain.com\ecp) to login ECP in internal network?
If yes, what is the error message?
And if you are using internal DNS server in your internal network, please make sure you have created an A or CNAME record to resolve mail.mydomain.com to the internal ip address of your Exchange server.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.