> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/codescan/codescan-faqs/codescan-self-hosted-issues/setting-up-codescan-for-use-with-a-proxy.md).

# 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="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2F24GNUcYTbx3eu4tia1tL%2Fimage.png?alt=media&amp;token=6173f9b8-6581-4553-a5e6-05d7c9b05627" alt=""><figcaption></figcaption></figure>

and **antbuild.properties**

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2F4nzkJcCPI64ljKpXcveQ%2Fimage.png?alt=media&amp;token=ca0fa0b5-9d4f-45e8-8978-fc70d47a0a5e" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
