🤖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
    3
    3
    255
    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.

        felmueF 1 Reply Last reply Reply Quote -1
        • felmueF
          felmue @hacxx
          last edited by felmue

          Hello @hacxx

          please stop posting incorrect / not very useful information. W5500 is different from ENC28J60 and therefore EthernetENC or UIPEthernet library cannot be used for W5500. Thank you.

          Thanks
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

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