ESP HTTP/HTTPS server control port?

Doubleu
Posts: 2
Joined: Sun Sep 26, 2021 10:58 am

ESP HTTP/HTTPS server control port?

Postby Doubleu » Sun Sep 26, 2021 12:01 pm

Hi, I have a question according the esp_http_server.h and esp_https_server.h library.

When I create a httpd_config_t struct to configure the server behavior, I can set a so called ctrl_port which has a default value of 32768 (same for http and https server). According to the documentation, this port is used to exchange control signals between different components of the server.
I want to know whether it might pose a security risk to the application or if it is possible to interfere with the server behavior by sending udp packets to port 32768.

Code: Select all

httpd_config_t config = {
	.task_priority = tskIDLE_PRIORITY+5,
	.stack_size = 4096,
	.core_id = tskNO_AFFINITY,
	.server_port = 80,
	.ctrl_port = 32768,
	...
}

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: ESP HTTP/HTTPS server control port?

Postby ESP_YJM » Mon Sep 27, 2021 2:37 am

No, this port binded to link-local address. So only the device itself send control data to this port could be accepted.

Doubleu
Posts: 2
Joined: Sun Sep 26, 2021 10:58 am

Re: ESP HTTP/HTTPS server control port?

Postby Doubleu » Mon Sep 27, 2021 10:25 am

Thank you very much sir for your quick response and for answering my question.

Who is online

Users browsing this forum: No registered users and 131 guests