• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 CAM webserver change port

Q&A Forum › Category: ESP32 › ESP32 CAM webserver change port
0 Vote Up Vote Down
Nacho Aroca asked 1 year ago

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);

Question Tags: CAM32 change port to connect
2 Answers
0 Vote Up Vote Down
Steve Mercer answered 1 year ago

Rather than changing the port in your sketch, have you looked into port forwarding on your router?

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

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
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Firebase Web App with ESP32 and ESP8266 (version 1.2) April 25, 2022
  • [eBook Updated] MicroPython Programming with ESP32 and ESP8266 (version 1.3) February 7, 2022

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2022 · RandomNerdTutorials.com · All Rights Reserved