Skip to content

os: Support arbitrary ip address on eth0#873

Merged
sonnyp merged 4 commits intomainfrom
networkyeah
Mar 2, 2026
Merged

os: Support arbitrary ip address on eth0#873
sonnyp merged 4 commits intomainfrom
networkyeah

Conversation

@sonnyp
Copy link
Collaborator

@sonnyp sonnyp commented Feb 26, 2026

Connecting the PlanktoScope using a LAN cable to a DHCP server (router or computer with ICS) is a supported feature.

They were a few quirks which this PR attempts to solve.

  • If the preview is accessed using Firefox and the ip address, it needs to be present in mediamtx webrtcAdditionalHosts for the peer connection to be successful. (Chrome was not affected)

  • If Cockpit was accessed with the ip address, it would refuse login if it is not present in Origins.

So we now have a service that uses DBus to watch network changes and update cockpit + mediamtx configuration when the ip address changes. We also display it on the screen.

TODO:

@sonnyp sonnyp changed the title os: Allow arbitrary ip address os: Support arbitrary ip address Feb 26, 2026
@sonnyp sonnyp changed the title os: Support arbitrary ip address os: Support arbitrary ip address on eth0 Feb 26, 2026
@sonnyp sonnyp marked this pull request as ready for review March 2, 2026 10:27
@sonnyp sonnyp merged commit d872919 into main Mar 2, 2026
1 check passed
@sonnyp sonnyp deleted the networkyeah branch March 2, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant