{#if $settingsPriv}

Network scan

Automatically scan your network for devices. For this to work, you need to run UpSnap as root/admin and have nmap installed and available in your $PATH (For docker users, thats already the case and you don't need to do anything). Scanning might take some seconds.

{#if !$settingsPriv.scan_range} {:else if scanRange !== $settingsPriv.scan_range} {:else if scanRunning} {:else} {/if}
{#if scanResponse.devices?.length > 0} {#each scanResponse.devices.sort( (a, b) => a.ip.localeCompare( b.ip, undefined, { numeric: true } ) ) as device, index}
{device.name} {device.ip}
IP:
{device.ip}
Mac:
{device.mac}
Mac vendor:
{device.mac_vendor}
Netmask:
{scanResponse.netmask}
{/each}
{#if addAllCheckbox} {:else} {/if}
{/if}
{:else} {/if}