# Generate a network config


> Make a network.yaml file for Wi-Fi, a wired connection, 802.1X, static IP, time servers and DNS, and apply it to a ScreenlyOS player from a USB drive, without a keyboard.

Fill in the settings below to make a `network.yaml` file, then copy it to a USB drive and plug it into a player running ScreenlyOS. Everything happens in your browser; nothing you type is sent anywhere.

<div id="network-config-generator" class="my-8 w-full max-w-2xl">
  <form id="network-config-generator-form" class="flex flex-col gap-3">
    <div class="rounded-2xl border border-line bg-card p-5">
      <label class="flex cursor-pointer items-center justify-between gap-4">
        <span class="text-base font-medium text-ink">Configure Wi-Fi</span>
        <span class="relative inline-flex h-6 w-11 shrink-0">
          <input type="checkbox" name="configure_wifi" class="peer sr-only">
          <span class="pointer-events-none absolute inset-0 rounded-full bg-line peer-checked:bg-brand peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-brand-strong"></span>
          <span class="pointer-events-none absolute top-0.5 left-0.5 size-5 rounded-full bg-white transition-transform peer-checked:translate-x-5"></span>
        </span>
      </label>
      <div data-section="wifi" class="mt-4 hidden flex flex-col gap-4 border-t border-line pt-4">
        <div class="flex flex-col gap-1.5">
          <label class="text-sm font-medium text-ink" for="network-config-generator-ssid">SSID</label>
          <input id="network-config-generator-ssid" type="text" name="ssid" required class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
        </div>
        <div class="flex flex-col gap-1.5">
          <label class="text-sm font-medium text-ink" for="network-config-generator-wifi-security">Security</label>
          <select id="network-config-generator-wifi-security" name="wifi_security" class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            <option value="personal">WPA/WPA2 Personal</option>
            <option value="open">Open (no password)</option>
            <option value="enterprise">802.1x PEAP (Enterprise)</option>
          </select>
        </div>
        <div data-section="wifi-identity" class="hidden flex flex-col gap-1.5">
          <label class="text-sm font-medium text-ink" for="network-config-generator-wifi-identity">Identity</label>
          <input id="network-config-generator-wifi-identity" type="text" name="wifi_identity" required autocomplete="username" placeholder="e.g. user@example.com" class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
        </div>
        <div data-section="wifi-password" class="flex flex-col gap-1.5">
          <label class="text-sm font-medium text-ink" for="network-config-generator-passphrase">Passphrase</label>
          <div data-password-field class="relative">
            <input id="network-config-generator-passphrase" type="password" name="passphrase" required autocomplete="current-password" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 pr-11 text-base text-ink focus:border-brand-strong focus:outline-none">
            <button type="button" data-toggle-passphrase class="absolute inset-y-0 right-0 flex w-10 cursor-pointer items-center justify-center text-ink-muted hover:text-ink" aria-label="Show passphrase" aria-pressed="false">
              <svg data-eye-icon class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
                <path d="M1.5 12s3.75-7 10.5-7 10.5 7 10.5 7-3.75 7-10.5 7-10.5-7-10.5-7Z"></path>
                <circle cx="12" cy="12" r="3"></circle>
              </svg>
              <svg data-eye-off-icon class="hidden size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
                <path d="M3 3l18 18"></path>
                <path d="M10.58 10.58a3 3 0 0 0 4.24 4.24"></path>
                <path d="M6.6 6.62C4.1 8.14 2.5 10.5 1.5 12c0 0 3.75 7 10.5 7 2.02 0 3.76-.63 5.19-1.52"></path>
                <path d="M17.4 17.4C19.24 16.05 20.53 14.19 22.5 12c0 0-3.75-7-10.5-7-.98 0-1.9.13-2.76.37"></path>
              </svg>
            </button>
          </div>
        </div>
        <div class="flex flex-col gap-3 rounded-xl bg-well p-4">
          <label class="flex cursor-pointer items-center justify-between gap-4">
            <span class="text-base text-ink">Use DHCP</span>
            <span class="relative inline-flex h-6 w-11 shrink-0">
              <input type="checkbox" name="wifi_use_dhcp" class="peer sr-only" checked>
              <span class="pointer-events-none absolute inset-0 rounded-full bg-line peer-checked:bg-brand peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-brand-strong"></span>
              <span class="pointer-events-none absolute top-0.5 left-0.5 size-5 rounded-full bg-white transition-transform peer-checked:translate-x-5"></span>
            </span>
          </label>
          <div data-section="wifi-dhcp-disable" class="hidden flex flex-col gap-3 border-t border-line pt-3">
            <div class="flex flex-col gap-1.5">
              <label class="text-sm font-medium text-ink" for="network-config-generator-wifi-ip">IP</label>
              <input id="network-config-generator-wifi-ip" type="text" name="wifi_ip" required class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            </div>
            <div class="flex flex-col gap-1.5">
              <label class="text-sm font-medium text-ink" for="network-config-generator-wifi-netmask">Netmask</label>
              <input id="network-config-generator-wifi-netmask" type="text" name="wifi_netmask" required class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            </div>
            <div class="flex flex-col gap-1.5">
              <label class="text-sm font-medium text-ink" for="network-config-generator-wifi-gateway">Gateway</label>
              <input id="network-config-generator-wifi-gateway" type="text" name="wifi_gateway" required class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            </div>
          </div>
          <label class="flex cursor-pointer items-center justify-between gap-4 border-t border-line pt-3">
            <span class="text-base text-ink">Hidden SSID</span>
            <span class="relative inline-flex h-6 w-11 shrink-0">
              <input type="checkbox" name="hidden_ssid" class="peer sr-only">
              <span class="pointer-events-none absolute inset-0 rounded-full bg-line peer-checked:bg-brand peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-brand-strong"></span>
              <span class="pointer-events-none absolute top-0.5 left-0.5 size-5 rounded-full bg-white transition-transform peer-checked:translate-x-5"></span>
            </span>
          </label>
        </div>
      </div>
    </div>
    <div class="rounded-2xl border border-line bg-card p-5">
      <label class="flex cursor-pointer items-center justify-between gap-4">
        <span class="text-base font-medium text-ink">Configure wired connection</span>
        <span class="relative inline-flex h-6 w-11 shrink-0">
          <input type="checkbox" name="configure_wired" class="peer sr-only">
          <span class="pointer-events-none absolute inset-0 rounded-full bg-line peer-checked:bg-brand peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-brand-strong"></span>
          <span class="pointer-events-none absolute top-0.5 left-0.5 size-5 rounded-full bg-white transition-transform peer-checked:translate-x-5"></span>
        </span>
      </label>
      <div data-section="wired" class="mt-4 hidden flex flex-col gap-3 border-t border-line pt-4">
        <div class="flex flex-col gap-3 rounded-xl bg-well p-4">
          <label class="flex cursor-pointer items-center justify-between gap-4">
            <span class="text-base text-ink">Use DHCP</span>
            <span class="relative inline-flex h-6 w-11 shrink-0">
              <input type="checkbox" name="wired_use_dhcp" class="peer sr-only" checked>
              <span class="pointer-events-none absolute inset-0 rounded-full bg-line peer-checked:bg-brand peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-brand-strong"></span>
              <span class="pointer-events-none absolute top-0.5 left-0.5 size-5 rounded-full bg-white transition-transform peer-checked:translate-x-5"></span>
            </span>
          </label>
          <div data-section="wired-dhcp-disable" class="hidden flex flex-col gap-3 border-t border-line pt-3">
            <div class="flex flex-col gap-1.5">
              <label class="text-sm font-medium text-ink" for="network-config-generator-wired-ip">IP</label>
              <input id="network-config-generator-wired-ip" type="text" name="wired_ip" required class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            </div>
            <div class="flex flex-col gap-1.5">
              <label class="text-sm font-medium text-ink" for="network-config-generator-wired-netmask">Netmask</label>
              <input id="network-config-generator-wired-netmask" type="text" name="wired_netmask" required class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            </div>
            <div class="flex flex-col gap-1.5">
              <label class="text-sm font-medium text-ink" for="network-config-generator-wired-gateway">Gateway</label>
              <input id="network-config-generator-wired-gateway" type="text" name="wired_gateway" required class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            </div>
          </div>
        </div>
        <div class="flex flex-col gap-3 rounded-xl bg-well p-4">
          <label class="flex cursor-pointer items-center justify-between gap-4">
            <span class="text-base text-ink">802.1x authentication</span>
            <span class="relative inline-flex h-6 w-11 shrink-0">
              <input type="checkbox" name="wired_8021x" class="peer sr-only">
              <span class="pointer-events-none absolute inset-0 rounded-full bg-line peer-checked:bg-brand peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-brand-strong"></span>
              <span class="pointer-events-none absolute top-0.5 left-0.5 size-5 rounded-full bg-white transition-transform peer-checked:translate-x-5"></span>
            </span>
          </label>
          <div data-section="wired-8021x" class="hidden flex flex-col gap-3 border-t border-line pt-3">
            <div class="flex flex-col gap-1.5">
              <label class="text-sm font-medium text-ink" for="network-config-generator-wired-identity">Identity</label>
              <input id="network-config-generator-wired-identity" type="text" name="wired_identity" required autocomplete="username" placeholder="e.g. user@example.com" class="rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            </div>
            <div class="flex flex-col gap-1.5">
              <label class="text-sm font-medium text-ink" for="network-config-generator-wired-passphrase">Passphrase</label>
              <div data-password-field class="relative">
                <input id="network-config-generator-wired-passphrase" type="password" name="wired_passphrase" required autocomplete="current-password" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 pr-11 text-base text-ink focus:border-brand-strong focus:outline-none">
                <button type="button" data-toggle-passphrase class="absolute inset-y-0 right-0 flex w-10 cursor-pointer items-center justify-center text-ink-muted hover:text-ink" aria-label="Show passphrase" aria-pressed="false">
                  <svg data-eye-icon class="size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
                    <path d="M1.5 12s3.75-7 10.5-7 10.5 7 10.5 7-3.75 7-10.5 7-10.5-7-10.5-7Z"></path>
                    <circle cx="12" cy="12" r="3"></circle>
                  </svg>
                  <svg data-eye-off-icon class="hidden size-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
                    <path d="M3 3l18 18"></path>
                    <path d="M10.58 10.58a3 3 0 0 0 4.24 4.24"></path>
                    <path d="M6.6 6.62C4.1 8.14 2.5 10.5 1.5 12c0 0 3.75 7 10.5 7 2.02 0 3.76-.63 5.19-1.52"></path>
                    <path d="M17.4 17.4C19.24 16.05 20.53 14.19 22.5 12c0 0-3.75-7-10.5-7-.98 0-1.9.13-2.76.37"></path>
                  </svg>
                </button>
              </div>
            </div>
            <p class="text-sm leading-6 text-ink-muted">Screenly players support 802.1x PEAP authentication.</p>
          </div>
        </div>
      </div>
    </div>
    <div class="rounded-2xl border border-line bg-card p-5">
      <label class="flex cursor-pointer items-center justify-between gap-4">
        <span class="text-base font-medium text-ink">Configure NTP settings</span>
        <span class="relative inline-flex h-6 w-11 shrink-0">
          <input type="checkbox" name="configure_ntp" class="peer sr-only">
          <span class="pointer-events-none absolute inset-0 rounded-full bg-line peer-checked:bg-brand peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-brand-strong"></span>
          <span class="pointer-events-none absolute top-0.5 left-0.5 size-5 rounded-full bg-white transition-transform peer-checked:translate-x-5"></span>
        </span>
      </label>
      <div data-section="ntp" class="mt-4 hidden border-t border-line pt-4">
        <div data-server-list="ntp" class="flex flex-col gap-3 rounded-xl bg-well p-4">
          <label class="text-sm font-medium text-ink" for="network-config-generator-ntp-server">NTP Servers</label>
          <div class="server-row flex items-stretch gap-2">
            <input id="network-config-generator-ntp-server" type="text" name="ntp_server" placeholder="e.g. pool.ntp.org" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            <button type="button" class="server-add-btn flex w-11 shrink-0 items-center justify-center rounded-lg border border-line bg-surface text-lg text-ink hover:bg-line" data-add-name="ntp_server" aria-label="Add server">+</button>
          </div>
        </div>
      </div>
    </div>
    <div class="rounded-2xl border border-line bg-card p-5">
      <label class="flex cursor-pointer items-center justify-between gap-4">
        <span class="text-base font-medium text-ink">Configure DNS settings</span>
        <span class="relative inline-flex h-6 w-11 shrink-0">
          <input type="checkbox" name="configure_dns" class="peer sr-only">
          <span class="pointer-events-none absolute inset-0 rounded-full bg-line peer-checked:bg-brand peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-brand-strong"></span>
          <span class="pointer-events-none absolute top-0.5 left-0.5 size-5 rounded-full bg-white transition-transform peer-checked:translate-x-5"></span>
        </span>
      </label>
      <div data-section="dns" class="mt-4 hidden border-t border-line pt-4">
        <div data-server-list="dns" class="flex flex-col gap-3 rounded-xl bg-well p-4">
          <label class="text-sm font-medium text-ink" for="network-config-generator-dns-server">DNS Servers</label>
          <div class="server-row flex items-stretch gap-2">
            <input id="network-config-generator-dns-server" type="text" name="dns_server" placeholder="e.g. 1.1.1.1" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-base text-ink focus:border-brand-strong focus:outline-none">
            <button type="button" class="server-add-btn flex w-11 shrink-0 items-center justify-center rounded-lg border border-line bg-surface text-lg text-ink hover:bg-line" data-add-name="dns_server" aria-label="Add server">+</button>
          </div>
        </div>
      </div>
    </div>
    <button type="submit" data-network-setup-submit class="btn-primary-sm mt-3 w-full justify-center py-3 text-base disabled:cursor-not-allowed disabled:opacity-40" disabled>
      Generate configuration file
    </button>
  </form>
  <div class="mt-4 rounded-2xl border border-line bg-card p-5">
    <p class="mb-3 text-base font-medium text-ink">What to do with the network.yaml file:</p>
    <ol class="flex list-decimal flex-col gap-2 pl-5 text-base leading-7 text-ink/80">
      <li>
        Copy the file onto a USB stick formatted as FAT32. No other format is supported.
        <p class="mt-1 text-sm leading-6 text-ink-muted">
          The file must be named exactly network.yaml. If you downloaded more than one into the same folder,
          your browser may have saved it as network (1).yaml or similar, so rename it back to network.yaml before
          copying it over.
        </p>
      </li>
      <li>Safely eject the USB stick from your computer.</li>
      <li>Boot up your Screenly Player. If it cannot get online with its current settings, wait for the network diagnostics to finish. For a Wi-Fi setup this shows as &quot;Skipped Wireless Connection&quot; with a red X icon.</li>
      <li>Insert the USB stick into a USB port on the player. It will apply the new network configuration and reboot itself.</li>
      <li>Once the player reboots and comes back up, you can remove the USB stick.</li>
    </ol>
    <p class="mt-3 text-base leading-7 text-ink-muted">
      You can reuse this same USB stick on other devices. Just update the file with any device-specific
      changes (e.g. static IPs).
    </p>
  </div>
</div>