Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP in Fischnetz #3

Open
moritzschaefer opened this issue Nov 3, 2019 · 2 comments
Open

DHCP in Fischnetz #3

moritzschaefer opened this issue Nov 3, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@moritzschaefer
Copy link
Owner

Fischnetz is a great idea, so I added Manta to it. It would be nice to add a DHCP (if there is none yet) to facilitate access to the Manta's UI via a domain name instead of its IP (e.g. manta.device instead of 192.168.xxx.xxx)

@moritzschaefer moritzschaefer added the enhancement New feature or request label Nov 3, 2019
@knorchbold
Copy link
Collaborator

DHCP reservations (MAC <-> IP) can be made in the wifi router's web interface. Unfortunately it has no integrated DNS server, so hostnames can not be assigned. There are multiple ways to address this: You could install OpenWRT on the router (which is then another thing that someone has to maintain, so I'm against it). You could run a DNS server on another device in the network (same concern). Or - this is what I do and what I think is best - you could just use mDNS. I already use that in my projects, as it comes automatically with Arduino's OTA Library. So "Stroboter.local" or "JellyControl1.local" are already there. I don't know how well that is supported with MicroPython, but I assume it is just a few lines of code, as it is with Arduino.

@moritzschaefer
Copy link
Owner Author

Oops. I wanted to say DNS anyways. Thanks for getting that.
It seems mDNS has indeed be added to micropython a few months ago (micropython/micropython@2ccf030). Setting the host name appropriately should be enough. I have to test it next time I'm in Berlin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants