IDEA sonarlint can't connect to sonarqube

I can use my IntelliJ SonarLint to a SonarQube instance.

But two weeks later, I get an error:

Failed to connect to the server. Please check the configuration. Cause: Connect to http://localhost:80 [localhost/127.0.0.1] failed: Connection refused: no further information

  • Operating system: win11
  • SonarLint plugin version: 10.2.0.77238
  • Programming language you’re coding in: Java
  • Is connected mode used:
    • Connected to SonarQube * 8.5.1 (build 38104)
    • SonarQube url :10.1.4.179:9000 ,The URL address can be accessed through the browser.

Hey there.

First things first, you should make sure you’re using supported versions of SonarLint and SonarQube.

For SonarLint (for IntelliJ), the latest version is *v10.10.
For SonarQube, v8.5.1 has not been supported for a long time, and you should upgrade (first to 8.9, and then 9.9, the currently supported LTS version of SonarQube)

Beyond versions, you should double check your Connected Mode setup and make sure your URL is actually pointing to 10.1.4.179:9000, and not localhost, or something similar.