Skip to main content
Graduate
November 22, 2024
Question

NetXDuo webserver hostname

  • November 22, 2024
  • 1 reply
  • 620 views

Hello,

recently I've been developing webserver using NetXDuo framework on STM32H573 MCU and I can't find an option to enable hostname for this device.

I found that there is a parameter "name_ptr" passed to nx_dhcp_create() function and the name passed to it is even included in DHCP discovery request (checked with Wireshark), but I guess that it is not a hostname.

When I am scanning local network (devices attached to my router), I can see devices and almost all of them have hostname (my PC, router, printer) but my device does not have one. I tried scanning using Angry IP Scanner, nmap and arp tools (currently using Linux).

What am I missing? Does NetXDuo have option to enable hostname?

    This topic has been closed for replies.

    1 reply

    ST Employee
    January 8, 2025

    Hello @Faust ,

    according to the Nextduo official implementation you can set and MDNS name by using the following API:

    UINT nx_mdns_domain_name_set(
     NX_MDNS *mdns_ptr,
     CHAR *domain_name);

    here is the reference to this section in the official documentation.

    Regards