How to Open Remotely Installed Sonar on a Browser

Unable to open remotely installed sonar on a browser

In your server's sonar.properties file, you'll need to set the host information in order to access the server remotely.

Specifically, you need to set the following values:

sonar.web.host: 192.168.1.1 #use your server IP here
sonar.web.port: 80 #set this if you want a different port than 9000

Also, in the web UI's Settings area, under the "General" section, set the "Server base URL" value so that links in generate emails, etc, point to the right location. This can also be set in your sonar.properties file as sonar.core.serverBaseURL

Don't forget to restart the Sonar service for the changes to take effect.

Cannot open SonarQube in web-browser

Make sure that the firewall allows the port of SonarQube to be accessible from other networks.

Run the following command to check if the SonarQube port is open or not:

sudo ufw status verbose

If your firewall is disabled this command will give you the following output:

Status: inactive

In this case enable your firewall by running sudo ufw enable and then again run

sudo ufw status verbose

It will give you an output like the following:

Sample Image

If the output doesn't show SonarQube port then enable its port by using the following command:

sudo ufw allow <SONAR_PORT>/tcp

This will allow your SonarQube port to be accessible.

Sonar remote access

I might be late on this post. I am using Sonarqube Community Edition 8.8 and I was facing same issue, was able to access on localhost and not using IP. In sonar.properties I changed sonar.web.host from 0.0.0.0 to sonar.web.host = "*" and restarted sonarqube. This worked for me.



Related Topics



Leave a reply



Submit