{% extends "base.html" %} {% block title %}LAN Mode -- ProducerOS{% endblock %} {% block page_heading %}LAN Mode & Devices{% endblock %} {% block content %}

Current mode: {{ bind_mode }}{% if bind_mode == "lan" and lan_ip %} · http://{{ lan_ip }}:{{ port }}{% endif %}

{% if bind_mode != "lan" %}

ProducerOS is running in desktop mode (localhost only). To allow your Android phone to connect, stop the app and start it with .\scripts\run_lan.ps1 instead. See docs/ANDROID_PWA.md.

{% else %}
LAN mode is active. Do not forward this port through your router -- it is meant for your home network only.
{% endif %}
{% if bind_mode == "lan" %}

Pair a new device

{% if new_pairing %}

Scan with your phone, or enter this code

QR code to pair {{ new_pairing.device.device_name }}

{{ new_pairing.code }}

Expires in {{ new_pairing.ttl_minutes }} minutes.

Or visit: {{ new_pairing.url }}

{% endif %}
{% endif %}

Paired devices

{% for d in devices %}
{{ d.device_name }} {{ d.status.value }} {% if d.last_seen_at %}
Last seen {{ d.last_seen_at.strftime("%Y-%m-%d %H:%M") }}{% endif %}
{% if d.status.value == "active" %}
{% endif %}
{% else %}

No devices paired yet.

{% endfor %}
{% endblock %}