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

Kowshik_Bevara
Posts: 20
Joined: Wed Mar 02, 2022 2:39 pm

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

Postby Kowshik_Bevara » Sat Dec 03, 2022 8:43 am

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.

mzincali
Posts: 46
Joined: Wed Jun 08, 2022 7:23 am

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

Postby mzincali » Sat Dec 03, 2022 9:39 am

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.

Kowshik_Bevara
Posts: 20
Joined: Wed Mar 02, 2022 2:39 pm

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

Postby Kowshik_Bevara » Sat Dec 03, 2022 9:50 am

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.

mzincali
Posts: 46
Joined: Wed Jun 08, 2022 7:23 am

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

Postby mzincali » Sat Dec 03, 2022 10:48 am

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.

Kowshik_Bevara
Posts: 20
Joined: Wed Mar 02, 2022 2:39 pm

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

Postby Kowshik_Bevara » Sat Dec 03, 2022 10:53 am

Got it now, Thank you so much

boarchuz
Posts: 605
Joined: Tue Aug 21, 2018 5:28 am

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

Postby boarchuz » 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()

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

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

Postby mbratch » Sun Dec 04, 2022 1:29 am

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`.

mzincali
Posts: 46
Joined: Wed Jun 08, 2022 7:23 am

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

Postby mzincali » Mon Dec 05, 2022 1:04 am

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?

Kowshik_Bevara
Posts: 20
Joined: Wed Mar 02, 2022 2:39 pm

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

Postby Kowshik_Bevara » Mon Dec 05, 2022 5:16 am

I am using ESP-IDF, and I changed the LWIP_HOSTNAME in the menu configuration. Thanks for the help, It worked.

Who is online

Users browsing this forum: No registered users and 100 guests