• 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 code for IP output port

Q&A Forum › Category: ESP32 › ESP32 Cam code for IP output port
0 Vote Up Vote Down
ray asked 4 years ago

Where in the ESP23 cam code is the output IP port set?
I would like to run it on ports other than 80 and 18
Where can I modify code to output on other ports (ie 8001, 8010)

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Ray.
Can you tell me to what project you are referring to?
Regards,
Sara

0 Vote Up Vote Down
ray answered 4 years ago

Any of the projects in the ESP32 CAM book
or the example in arduino ide
you should put code ID in the arduino code
 
/*********
Rui Santos
Complete instructions at https://RandomNerdTutorials.com/esp32-cam-projects-ebook/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*********/
usually assigns server to port 80 and stream to port 80
void startCameraServer(){
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
config.server_port = 80;
…..
config.server_port += 1;
……
Serial.print(“Camera Stream Ready! Go to: http://”);
Serial.println(WiFi.localIP());

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
I think you just need to set the port in the following line:

config.server_port = 80;

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.