• 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 4 years 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 4 years 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 4 years 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] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

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

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

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.