Publishing SonarQube Server URL to internet

Hi All,
I am using 9.2 version of SonarQube and have intergrated with Azure DevOps by creating a service connection.However the pipeline is not able to connect to sonarQube which is installed in on-prem VM and we are using the microsoft hosted agents.
Could you please help with the steps to publish the SonarQube URL to internet.