# Mac Collector proxy support

## Overview <a href="#maccollectorproxysupport-overview" id="maccollectorproxysupport-overview"></a>

The devices in a corporate network typically connect to the Internet through a proxy server instead of using a direct connection. A proxy server, often simply referred to as a proxy, forwards the requests of client applications that run on corporate devices to the servers that run on the Internet, as if the proxy itself is initiating the requests. Then the proxy sends the responses from the servers back to the clients. By acting as an intermediary, a proxy server can provide varied functionality such as content filtering (for improved security) or content caching (for better performance).

<figure><img src="/files/KLZVI08jgET7BwiIzk2e" alt="" width="442"><figcaption></figcaption></figure>

Collectors inside a corporate network that is equipped with a proxy server are usually required to send their traffic through the proxy to reach the Nexthink instance. In this article, learn about the different types of proxies and configurations supported by Collector.

## Supported types of proxies <a href="#maccollectorproxysupport-supportedtypesofproxies" id="maccollectorproxysupport-supportedtypesofproxies"></a>

Collector supports the following types of proxies:

* **HTTP**
* **SOCKS5**

Collector should work out of the box with transparent proxies that automatically intercept network traffic going from the corporate network to the Internet. The client systems are not aware that their traffic is traversing a proxy.

## Supported proxy configurations <a href="#maccollectorproxysupport-supportedproxyconfigurations" id="maccollectorproxysupport-supportedproxyconfigurations"></a>

Collector for macOS supports the configuration of proxy settings at the application level. It does not get the proxy settings from the system but from its own custom configuration. Make sure to provide the proxy settings during the Collector [installation](/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/installing-collector-on-macos.md).

### Collector custom configuration <a href="#maccollectorproxysupport-collectorcustomconfiguration" id="maccollectorproxysupport-collectorcustomconfiguration"></a>

To specify the proxy settings of the Collector at the application level during installation, select either one or both of the following methods:

* **Automatic proxy**\
  Get a PAC file from the specified URL to automatically determine the proxy settings. A proxy-auto-config (PAC) file is a JavaScript file with a single function that determines which proxy should be used for each client connection.
* **Manual proxy**\
  Manually provide the address and port of the proxy.

## Collector logic to choose proxy settings <a href="#maccollectorproxysupport-collectorlogictochooseproxysettings" id="maccollectorproxysupport-collectorlogictochooseproxysettings"></a>

Collector for macOS selects one method to get its proxy settings on a trial and error basis. Collector tests the validity of each method in sequence: the first method that yields a set of proxy settings which allows Collector to connect to the Nexthink instance is kept. Methods are tried in the following order until one of them is successful:

1. If selected, try automatic configuration.
   * Retrieve the PAC file, execute and determine the proxy.
2. If selected, try manual configuration.
3. Direct connection without proxy.

***

RELATED TASK

* [Installing the Collector on macOS](/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/installing-collector-on-macos.md)


---

# 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://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/macos-collector-references/mac-collector-proxy-support.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.
