Page 1 of 1

Chip details are visible when chip is getting connected to Wi-FI

Posted: Sat Dec 03, 2022 8:43 am
by Kowshik_Bevara
Hi,

I am using the ESP32S3 chip for my project. When I am connecting it to my mobile hotspot, the device is visible as "espressif" in the connected devices list. Is there any way that I can modify or hide it?

Thanks,
Kowshik.

Re: Chip details are visible when chip is getting connected to Wi-FI

Posted: Sat Dec 03, 2022 9:39 am
by mzincali
If I am not mistaken, the Access Point is using the MAC address of the ESP32 in order to identify it. MAC addresses are assigned as blocks to manufacturers and then the list of blocks are available publicly.

https://gist.github.com/aallan/b4bb86db ... 10ae9bd3e4

You can reprogram the ESP32 to have a different MAC address. You could come up with arbitrary MAC addresses, which will have a low chance of colliding with an assigned address used by someone else. However, when that happens both your device and the other device will have some serious issues communicating.

You could get your own block of addresses assigned to you, and then use them. Just make sure that any name that is assigned for those MAC addresses isn't also visible to outsiders.

Re: Chip details are visible when chip is getting connected to Wi-FI

Posted: Sat Dec 03, 2022 9:50 am
by Kowshik_Bevara
Hi, Thanks for the reply.

Yeah, the connected device will be identified by MAC address but along with the mac address, it will also show the name of the device.

So what's happening here was the name of the device is being shown as espressif along with the MAC ID. I don't have any problem with the MAC ID but I want to change the name of the device.

Thanks,
Kowshik.

Re: Chip details are visible when chip is getting connected to Wi-FI

Posted: Sat Dec 03, 2022 10:48 am
by mzincali
In general, the name of the manufacturer is mapped from the MAC address, by the system that is displaying the clients connected. It is not a string that the ESP32 is passing to the network. The ESP32 is only sending its MAC address. The access point is then making that MAC to the manufacturer name that it displays to you.

Re: Chip details are visible when chip is getting connected to Wi-FI

Posted: Sat Dec 03, 2022 10:53 am
by Kowshik_Bevara
Got it now, Thank you so much

Re: Chip details are visible when chip is getting connected to Wi-FI

Posted: Sat Dec 03, 2022 11:01 am
by boarchuz

Code: Select all

config LWIP_LOCAL_HOSTNAME
        string "Local netif hostname"
        default 'espressif'
        help
            The default name this device will report to other devices on the network.
            Could be updated at runtime with esp_netif_set_hostname()

Re: Chip details are visible when chip is getting connected to Wi-FI

Posted: Sun Dec 04, 2022 1:29 am
by mbratch
Are you using ESP-IDF or Arduino?

You shouldn't have to change your MAC address. There should be an API call to change your hostname. For ESP-IDF, it's `esp_netif_set_hostname`.

Re: Chip details are visible when chip is getting connected to Wi-FI

Posted: Mon Dec 05, 2022 1:04 am
by mzincali
boarchuz wrote:
Sat Dec 03, 2022 11:01 am

Code: Select all

config LWIP_LOCAL_HOSTNAME
        string "Local netif hostname"
        default 'espressif'
        help
            The default name this device will report to other devices on the network.
            Could be updated at runtime with esp_netif_set_hostname()
I didn't realize there was a query/response that did this. Can you tell me what kind of a call is being made to do this? Is it an IP query or is it at the Ethernet level?

Re: Chip details are visible when chip is getting connected to Wi-FI

Posted: Mon Dec 05, 2022 5:16 am
by Kowshik_Bevara
I am using ESP-IDF, and I changed the LWIP_HOSTNAME in the menu configuration. Thanks for the help, It worked.