
Hi @shaikh muhammad zulqarnain ,
1.Due to your configuration using the internal HTTP method, if there is an error previewing the file from the external network, verify that the appropriate public SSL wildcard certificate is installed and TLS is enabled on the Office Online Server.
Article reference on enforcing TLS: best practice to force enable TLS1.2
2.Do an nslookup test of the Sharepoint URL from the OOS server to see if there is a problem with the URL path. OOS, SharePoint and the client all need to be able to parse/view the full path to the document they are viewing. If there is a problem with it, fix the DNS.
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.