Skip to content

Add support to change HOST_NAME constant #186

@sezeryalcin

Description

@sezeryalcin

There is absolutely no point of keeping a static hostname prefix as this library is free and open source. There are already made patches for allowing customization of DHCP hostname string so please allow this functionality.

Dhcp.h

#define HOST_NAME "WIZNet"

I am seeing following in my DHCP table which could make much sense if I had a chance to customize it.

WIZnetEFFEEC | DE:AD:BE:EF:FE:EC | 192.168.1.107 | 47:49:21
WIZnetEFFEEB | DE:AD:BE:EF:FE:EB | 192.168.1.108 | 47:50:28
WIZnetEFFEEA | DE:AD:BE:EF:FE:EA | 192.168.1.110 | 47:58:33
WIZnetEFFEE0

Activity

Russell108

Russell108 commented on Nov 28, 2022

@Russell108

Hello Arduino team I have many Arduino on my network If I can set the hostname as in the wifinina library, it would be really easy to find them on my DHCP server
It's not a trivial thing but really useful for administration

Russell108

Russell108 commented on Dec 8, 2022

@Russell108

OK For me, this is no longer such a big issue I realise that the hostname is unique
I understand that the default will be WIZnet, followed by the last three octets of the mac address.

thirstyice

thirstyice commented on Jan 23, 2024

@thirstyice

See my PR #248

ThSchwanck

ThSchwanck commented on Apr 16, 2024

@ThSchwanck

I needed an option to set non constant host names, see my PR #257.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Russell108@thirstyice@per1234@sezeryalcin@ThSchwanck

        Issue actions

          Add support to change HOST_NAME constant · Issue #186 · arduino-libraries/Ethernet