I think, you haven't configured the hostname in your IIS settings. Add your hostname as below from IIS console and point the public ip address of the virtual machine in your domain registrar
----------
--please don't forget to upvote
and Accept as answer
if the reply is helpful--