# Setting Up CodeScan for Use with a Proxy

To configure CodeScan for use in a network with a proxy, you will need to set the following settings in your **antbuild.properties** file (version **3.6-RC3+**) or as parameters of your Jenkins job.

**http.proxyHost, http.proxyPort** and optionally **http.proxyUser** and **http.proxyPassword**

Older versions require you to set the above parameters and the following parameters in -**DANT\_OPTS**:

**https.proxyHost**, **https.proxyPort** and optionally **https.proxyUser** and **https.proxyPassword**

Also, if your SonarQube™ server is not localhost and your proxy doesn’t resolve internally, you’ll need to add the SonarQube™ server host to **http.nonProxyHosts** to ensure that contacting the SonarQube™ server doesn’t go through the proxy. The value in **http.nonProxyHosts** MUST match the **sonar.host.url** value in the **antbuild.xml** file (minus the port number) or it will not connect.

For example, **antbuild.xml**

<figure><img src="/files/gsRIaqGMokuqqaJZAFU0" alt=""><figcaption></figcaption></figure>

and **antbuild.properties**

<figure><img src="/files/Q8LgGpgLYSnY2Ac1iSb3" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://knowledgebase.autorabit.com/product-guides/codescan/codescan-faqs/codescan-self-hosted-issues/setting-up-codescan-for-use-with-a-proxy.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.
