Hi, i’d like to know where can i change the port to connect from outside, in order to open AP port.
thks
I just can see (similar) this
Serial.printf(“Starting web server on port: ‘%d’\n”, config.server_port);
if (httpd_start(&camera_httpd, &config) == ESP_OK) {
httpd_register_uri_handler(camera_httpd, &index_uri);
httpd_register_uri_handler(camera_httpd, &cmd_uri);
httpd_register_uri_handler(camera_httpd, &status_uri);
httpd_register_uri_handler(camera_httpd, &capture_uri);
}
config.server_port += 1;
config.ctrl_port += 1;
Serial.printf(“Starting stream server on port: ‘%d’\n”, config.server_port);
Rather than changing the port in your sketch, have you looked into port forwarding on your router?
Hi.
What is the code that you want to change the port?
Here’s a similar question: https://rntlab.com/question/esp32-cam-code-for-ip-output-port/
Let me know if this helps.
Regards,
Sara