- Dokumentation
- Kameror
- Fixed IPs and rediscovery
Den här sidan finns ännu inte på Svenska. Den visas på engelska.
Fixed IPs and rediscoverySedan 1.6.1
Keep cameras recording when their network address changes — Vigiora learns each camera's hardware ID and finds it again.
I appen: /system
Most routers hand out addresses with DHCP. After a power cut or a router restart, a camera can get a new address, for example 192.0.2.49 becomes 192.0.2.37. Its stream address in Vigiora then points at the old address, and recording stops.
Vigiora handles this for you on cameras on the server's own network. The most reliable setup is still a fixed address for every camera.
Give cameras a fixed address#
Find the camera's hardware ID
Open the camera, click Edit, and read Hardware ID (MAC) on the General tab.
Open your router's DHCP settings
Sign in to your router and find DHCP reservations (also called static leases or address reservations).
Reserve the address
Reserve the camera's current address for its hardware ID. Save the router settings.
When you add a camera with a local address, Vigiora shows the detected hardware ID and maker, with a tip to reserve the address.
What Vigiora does by itself#
It learns each camera's hardware ID#
Vigiora reads the camera's MAC address from the server's network table and stores it. It does so only after it has checked that the camera's stream opens at that address with the saved login. You don't type anything.
If you replace a camera and give the new one the same address and login, Vigiora notices and updates the stored ID without raising an alert.
It finds the camera again when it moves#
If a camera stops answering at its address for about a minute, Vigiora looks for its hardware ID on the local network. When exactly one device has it, Vigiora checks the login there first: it sends a deliberately wrong password, which a real camera must refuse, and then the saved login. Only then does it update the camera's addresses: main stream, sub-stream and ONVIF/PTZ address.
Recording, live view, motion detection and audio then continue.
It tells you#
You get a notification such as:
Camera 'Entrance' moved from 192.0.2.49 to 192.0.2.37 — updated automatically
The change is also logged.
Recorders (NVR/DVR)#
Cameras added as channels of one recorder share its address and hardware ID. When the recorder gets a new address, Vigiora moves all its channels together and tells you once, for example "NVR at 192.0.2.11 moved to 192.0.2.20 — 16 cameras updated".
Vigiora checks a recorder's login at most once every 10 minutes, however many channels it has, so the recorder doesn't lock Vigiora out for too many failed logins. If the check keeps failing, for example because the saved password is wrong, Vigiora stops after three tries until you edit the camera.
Cameras that moved before Vigiora learned their ID#
If a camera moved before Vigiora learned its hardware ID, for example right after an upgrade, Vigiora looks for devices on the local network that accept connections on the camera's stream port. It tries the camera's saved stream path and login on a few of them, but only when:
- the device is not already used by another camera in Vigiora;
- the device asks for a secure (Digest) login — Vigiora never sends the password to a device it found by searching if that device only accepts plain-text (Basic) logins;
- the device refuses a wrong password.
Each device is tried at most once while the camera is missing, and only a handful of devices in total. If exactly one device accepts the login, Vigiora adopts it, learns its hardware ID and notifies you: "Camera 'Entrance' found at 192.0.2.37 and reconnected".
When Vigiora does not switch#
Vigiora changes a camera's address only when exactly one device matches and passes the login check. Otherwise it leaves the camera alone and tells you once. This happens when:
- several devices match the camera;
- the hardware ID is shared with another camera, for example two cameras behind a Wi-Fi bridge;
- the hardware ID appears at a new address but the device fails the login check;
- the camera has no hardware ID yet and no login in its address.
If the camera is not found, for example because it is unplugged, Vigiora searches after 1, 2, 5 and 10 minutes, scanning the network at most three times. Then it stops and sends one message: "Couldn't find camera 'Entrance' — check it's powered and on the network". It starts again when the camera answers, when you edit the camera, or when you click Clear on its hardware ID.
After a switch, Vigiora doesn't switch the same camera again for 10 minutes. It searches for one camera at a time.
It keeps watching after it gives up#
From version 1.6.3. After the search stops, Vigiora keeps a quiet watch on a missing camera whose hardware ID it knows. This finds a camera that comes back hours later on a new address, for example after a long power cut.
- About once a minute it looks at the server's own network table for the camera's hardware ID. This sends nothing on the network.
- At most every 10 minutes it sends one short connection attempt, without any login, to each address in the camera's part of the network (the 256 addresses around its last address) on its stream port. This lets the server's network table learn which devices are there.
- When the hardware ID shows up at exactly one address that no other camera uses, Vigiora runs the usual login check once, with the wrong-password test first, and then updates the camera's addresses.
- Each address is checked at most once an hour. An address that answers and fails the check is not tried again until the camera is found or you edit it.
Nothing of this runs while no camera is missing. You get the usual message when the camera is found, and only one message per outage.
Do it from a script or an AI agent#
From version 1.6.7 you don't have to wait for the automatic search. The network tools of API v1 find the current IP of a camera's hardware ID (GET /api/v1/network/lookup?mac=) and move the camera there (POST /api/v1/cameras/{camera_id}/actions/relocate, with a dry run first). They use the same login check as the automatic switch, and refuse to move a camera while its old address still answers.
You can also ask an AI agent connected through the MCP server, for example: "The entrance camera is offline since the router restarted. Look up its MAC and fix its address." The tools also work when Follow cameras when their address changes is off.
Settings#
| Alternativ | Beskrivning | Standard |
|---|---|---|
| Hardware ID (MAC) | Camera settings → General. Shows the learned ID (Learned automatically), the maker when known, where it was last seen, and the last address change. | — |
| Clear | Makes Vigiora forget the hardware ID and learn it again the next time the camera answers. Use it after you replace a camera with a new one at the same address. | — |
| Follow cameras when their address changes | Settings → Cameras and recording → Cameras → Cameras on the local network. Turns automatic switching on or off for all cameras. Hardware IDs are still learned when it is off. Admins only. | On |
Limits#
- Only cameras on the same local network as the server are followed, with private addresses such as 192.168.x.x, 10.x.x.x and 172.16–31.x.x. Cameras behind a Vigiora Client, a VPN or relay, or entered with a host name, are not changed.
- On Docker, the server container must use host networking. The Vigiora installer sets this up by default.
- The network scan covers the server's own subnet, up to 1,022 addresses.
- Supported on self-hosted Linux, Windows 11 and macOS servers.
- Cameras that only accept plain-text (Basic) logins are not moved automatically. Give them a DHCP reservation.
Sub-streams follow too#
When you add a Hikvision camera (…/Streaming/Channels/101) or a Dahua camera (…subtype=0), Vigiora also checks the matching sub-stream (…/102, subtype=1) and adds it if it answers. When the camera's address changes, in the editor or automatically, the sub-stream address is updated too.
From version 1.6.8 the ONVIF (PTZ) address follows too. When Vigiora found the camera's ONVIF port by itself, the ONVIF address gets the camera's new IP and keeps its port and path, or Vigiora clears it and searches for the port again. An ONVIF address you typed yourself is kept as you typed it. See PTZ cameras.
New cameras, rather than moved ones, are found by automatic camera discovery.