> For the complete documentation index, see [llms.txt](https://n-saikiran.gitbook.io/sonarqube/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n-saikiran.gitbook.io/sonarqube/installation-of-sonarqube/34-firewall-settings-for-sonarqube.md).

# 3.4 Firewall settings for SonarQube

If you have changed the default URL of SonarQube in ***sonar.properties under configuration folder(conf)of sonarQube*** installation then comment the sonar.web host line if you want the server to visible inside the network.

```
#sonar.web.host=0.0.0.0

# Web context. When set, it must start with forward slash (for example /sonarqube).
# The default value is root context (empty value).
sonar.web.context=/
# TCP port for incoming HTTP connections. Default value is 9000.
sonar.web.port=<to the port number you want to change>
```

Open up "Windows Firewall with Advanced Security" as an **administrator** and navigate to the inbound rules and right click to create a new rule.

![](/files/-M4S6lHxw7f-S6mVIHC7)The Windows firewall offers four types of rules:

* **Program**– Block or allow a program.
* **Port**– Block or a allow a port, port range, or protocol.(select this)
* **Predefined**– Use a predefined firewall rule included with Windows.
* **Custom**– Specify a combination of program, port, and IP address to block or allow.

![](/files/-M4S6lHz7KMPoCOUgVB5)

On the Protocol and Ports pane, select a protocol type and specify ports. For example,specify the local port where the sonarqube is installed (in this example i am taking the port number as 9263)

![](/files/-M4S6lI0QRuBPdbPfVI6)

In the Action pane, Select the “Allow the connection” option to allow the connection from the IP address and ports you specified. Be sure to check that no other firewall rules apply to the program – for example, if you have a firewall rule that allows all inbound traffic to the server application, this rule won’t do anything.

![](/files/-M4S6lI28suEju6yK8eI)On the Profile screen, you can apply the rule to a specific profile – for example, if you only want a program blocked when you’re connected to public Wi-Fi and other insecure networks, leave the “Public” box checked. By default, Windows applies the rule to all profiles.

![](/files/-M4S6lI4AxYJ1alKX4MQ)

In Name section provide a name to the profile, in this example it is SonarQube.![](/files/-M4S6lI6f35bjIpEd5Mw)

The rule takes effect after you click Finish and Restart the SonarQube server for safer side.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://n-saikiran.gitbook.io/sonarqube/installation-of-sonarqube/34-firewall-settings-for-sonarqube.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
