# 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&#x26;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&#x26;token=ca0fa0b5-9d4f-45e8-8978-fc70d47a0a5e" alt=""><figcaption></figcaption></figure>
