🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Set hostname using W5500

    Bases
    2
    2
    223
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xgonc
      last edited by

      Hello,
      I'm using the ATOMIC PoE Base W5500 (SKU: A091).
      In Arduino environment, how can I set the hostname for DHCP request? I don't seem to find any API for that purpose.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • H
        hacxx
        last edited by

        The W5500 Ethernet library for Arduino does not natively support setting a DHCP hostname in its standard implementation. If you're using Ethernet.h, it lacks this functionality. For advanced DHCP options like hostname, consider using the EthernetENC or UIPEthernet library, which offer extended DHCP support. Alternatively, you’d need to modify the DHCP client in the library to include the hostname in the DHCP request packet manually.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post