---
title: "Install Network Discovery on macOS | Lansweeper Platform"
slug: "install-network-discovery-macos"
description: "Install Lansweeper Network Discovery on macOS to add a hub or sensor, cover additional networks, and balance scanning performance across your environment."
status: "update"
updated: 2026-07-30T13:45:55Z
published: 2026-07-30T13:45:55Z
canonical: "docs.lansweeper.com/install-network-discovery-macos"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lansweeper.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Network Discovery - MacOS

Most trials already include one hub and sensor. Use these instructions when you need to add a second or third sensor, if you have additional networks, want to balance performance, or need redundancy.

## Prerequisites

- Review the [Discovery Hub and Sensor requirements](/docs/discovery-hub-and-sensor-requirements)
- Ensure this is the correct discovery system for your use case
- Review the [supported operating systems](/docs/install-network-discovery-macos#supported-operating-systems)

## Supported operating systems

- macOS 13 to current release, x64. Rosetta is required on Apple Silicon (M1 to current chip) until native ARM builds are available.

## Install the sensor and hub

Interactive (GUI)PKG DeploymentDMG Deployment

Recommended for most users.

1. In your preferred site, go to **Discovery > Systems > Download installers/packages**.
2. Select **Network Discovery > Download Network Discovery disk image**.
3. Open the installation file.
4. In the setup wizard:
  1. Choose an installation directory, then select **Next**.
  2. Select both **Install Hub** and **Install IT Sensor**.
  3. Accept the default configuration (**Hub** and **IT Sensor** on **localhost,** port **59525**). You can change this later if needed.
  4. Select **Next** to continue.
5. Wait for the setup to complete. Installation usually takes only a few minutes.
6. Once the installation is complete, you will be redirected to the Lansweeper Platform. Select the site you already created.

1. In your preferred site, go to **Discovery > Systems > Download installers/packages**.
2. Select **Network Discovery > Download Network Discovery package** and **Download Network Discovery package silent installation configuration** to download both files.
3. In your site, select **Systems > Link discovery system > Create new code**. Specify an expiration date, then select **Apply** and copy the generated code.

> [!NOTE]
> NOTE
> 
> The expiration date indicates when the linking code can no longer be used to establish a new connection between a site and your discovery system. Any existing connection between the system and your site will remain active after the expiration date.
4. On your computer, open the downloaded **Network Discovery package silent installation configuration** file.
5. In the file, replace `cloudtokenvalue` with your copied linking code. If the computer requires a proxy server, remove the `#` for `proxyserver=myproxyserver.domain.local` and `proxyport=8080` and modify the values as needed for your installation.

```bash
#!/bin/sh
PreinstallConfig="/tmp/LansweeperNetworkDiscovery-Preinstall.cfg" # Don't change this path!
[ -f $PreinstallConfig ] && chmod 744 $PreinstallConfig
cat > $PreinstallConfig << EOF
mode=unattended
accepteula=1
path=/Library/Application Support/Lansweeper Network Discovery
cloudtoken=cloudtokenvalue
#proxyserver=myproxyserver.domain.local
#proxyport=8080
EOF
chmod 744 $PreinstallConfig
```
6. Enter the following command:

```bash
sudo ./tmp/LansweeperPreinstallScript.sh
```
7. Enter the following command, replacing` X.X.X` in` Lansweeper-network-discovery-X.X.X-X-osx-installer.dmg` with the version number of your installer. If the computer requires a proxy server, add parameters`--proxyserver``myproxyserver.domain.local` and `--proxyport 8080`.

> [!NOTE]
> Installer version
> 
> The version numbers for your installer can be found in the downloaded `.pkg` file.

```bash
sudo Lansweeper-network-discovery-X.X.X-X-osx-installer.app/Contents/MacOS/installbuilder.sh --mode unattended --accepteula 1 --path /Library/Application Support/Lansweeper Network Discovery/ --cloudtoken cloudtokenvalue
```

1. In your preferred site, go to **Discovery > Systems > Download installers/packages**.
2. Select **Network Discovery > Download Network disk image** to download the installer.
3. In your site, select **Systems > Link discovery system > Create new code**. Specify an expiration date, then select **Apply** and copy the generated code.

> [!NOTE]
> NOTE
> 
> The expiration date indicates when the linking code can no longer be used to establish a new connection between a site and your discovery system. Any existing connection between the system and your site will remain active after the expiration date.
4. In an elevated command prompt, enter the following command to mount the DMG file:

```bash
 Lansweeper-network-discovery-X.X.X-X-osx-installer.dmg
```
5. To navigate the volume, enter:

```bash
cd "/Volumes/Lansweeper Network Discovery"
```
6. Enter the following command, replacing` X.X.X` in` Lansweeper-network-discovery-X.X.X-X-osx-installer.dmg` with the version number of your installer. If the computer requires a proxy server, add parameters `--proxyserver proxyserveraddress` and `--proxyport 8080`.

> [!NOTE]
> Installer version
> 
> The version numbers for your installer can be found in the downloaded `.dmg` file.

```bash
sudo Lansweeper-network-discovery-X.X.X-X-osx-installer.app/Contents/MacOS/installbuilder.sh --mode unattended --accepteula 1 --path /Library/Application Support/Lansweeper Network Discovery/ --cloudtoken cloudtokenvalue
```

## Next steps

Now that your hub and sensors are installed, you can [create a discovery credential](/docs/create-discovery-credentials) to access more asset details, [create a discovery action](/docs/create-a-network-discovery-action) to specify specifically what to scan and when, and [manage discovery exclusions](/docs/manage-discovery-exclusions) to keep unwanted assets out of your inventory.
