Sign Up

Unlock the Gateway: Join the Embed Threads

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Unlock the Possibilities: Dive In with Login Access

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Embed Threads

Embed Threads

Embed Threads Navigation

  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Forum
  • Communities
  • Questions
    • New Questions
    • Must Read Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Groups
  • Add group
  • Badges
  • Users
  • Help
  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
Antony
  • 0
AntonyBeginner
Asked: July 22, 20232023-07-22T11:03:08+00:00 2023-07-22T11:03:08+00:00In: Embedded Networking and Communication

OTA in ESP32

  • 0

I want to program ESP32 using OTA. But based on my research in internet I got to know that to do this, the esp32 and the computer(used to upload code) should be connected in the same wifi network. What if I wish to do this with different wifi network. For example, if I am in USA, I wish to upload the new code to the esp32 in India. Is it possible to do this thing? Can anyone answer this question?

  • 5 5 Answers
  • 472 Views
  • 0 Followers
  • 0
Share
  • Facebook

    Sorry this question is closed.

    5 Answers

    • Voted
    • Oldest
    • Recent
    1. Narendran S
      2023-07-22T15:50:34+00:00Added an answer on July 22, 2023 at 3:50 pm

      Yup, you can.

      Try to use any one cloud service provider, like AWS, GCP, Azure resources to establish an OTA

      • 0
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. Ritesh236 Explainer
      2023-07-22T17:54:58+00:00Added an answer on July 22, 2023 at 5:54 pm

      Hello,

      Yes it can be possible but for that you need to connect your ESP32 module to router or hot spot who has external network then only you can able to access it.

      Would ypu please let me know that are you using Arduino IDE or ESP32 IDF for programming perspective into ESP32?

      Regards,
      Ritesh Prajapati

      • 0
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • Antony Beginner
        2023-07-22T18:19:03+00:00Replied to answer on July 22, 2023 at 6:19 pm

        External network means? Can you explain please?

        • 0
        • Reply
        • Share
          Share
          • Share onFacebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
        • Ritesh236 Explainer
          2023-07-23T04:15:11+00:00Replied to answer on July 23, 2023 at 4:15 am

          Hello,

          External network means internet should be connected from your ESP32 Device.

          • 0
          • Reply
          • Share
            Share
            • Share onFacebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp
    3. alokm014 Enlightened
      2023-08-13T18:31:48+00:00Added an answer on August 13, 2023 at 6:31 pm

      Yes, it is possible to perform OTA updates on an ESP32 from a different Wi-Fi network, even if you are physically located in a different country. The requirement for both the ESP32 and the computer to be on the same Wi-Fi network is a common scenario for convenience, but it’s not a strict limitation.

      The ESP32 can connect to any Wi-Fi network with internet access, and you can set up your ESP32 to listen for OTA updates on a specific port. As long as your ESP32 is accessible from the internet (using its IP address and the designated port), you can initiate an OTA update from your computer in the USA to the ESP32 in India.

      Here are the general steps to achieve this:

      1. Configure the ESP32 for OTA:
      Set up your ESP32 to be capable of receiving OTA updates. Make sure you have the necessary libraries and code in place to handle OTA updates.

      2. Port Forwarding:
      In the router settings of the network where your ESP32 is connected (in India), you need to configure port forwarding to route incoming connections on the OTA port to the local IP address of your ESP32.

      3. Determine ESP32’s Public IP:
      Find out the public IP address of the network in India where your ESP32 is connected. You can use online services like “WhatIsMyIP” to determine this IP.

      4. Update Code from USA:
      From your computer in the USA, you can initiate the OTA update by sending the firmware to the ESP32’s public IP address using the specified port. This may involve using specialized tools or scripts, depending on your development environment.

      5. Firewall and Security Considerations:
      Keep in mind that security and firewall settings can affect this process. Ensure that your ESP32’s firewall allows incoming connections on the designated OTA port. You might also want to consider implementing security measures like authentication and encryption for the OTA process to ensure the integrity of the updates.

      • 0
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Sidebar

    Ask A Question

    Stats

    • Questions 85
    • Answers 949
    • Best Answers 15
    • Users 800

    Free PDF Downloads

    A Roadmap to a Successful Career

    HTTP, WS and TLS: The Complete Guide

    Embedded Interview Questions

    • Popular
    • Answers
    • alokm014

      Embedded System Testing: Strategies and Approaches

      • 271 Answers
    • BHASKAR

      RTC IN STM32 DATE PROBLEM

      • 62 Answers
    • Tanmoy Chandra Dey

      Why is the "ADDR flag" cleared without reading the SR2

      • 60 Answers
    • Aditya007

      Programming Error while using PICKIT4

      • 58 Answers
    • D Sai krishna

      STM32 board is not shown in Device Manager ( Not ...

      • 53 Answers
    • sex việt f68
      sex việt f68 added an answer Nice weblog here! Additionally your website quite a bit up… June 7, 2025 at 3:22 pm
    • How Do You Play Two Handed Pinochle
      How Do You Play Two Handed Pinochle added an answer However, if your opponent bids low, you may want to… June 7, 2025 at 2:48 pm
    • https://blackcoin.co
      https://blackcoin.co added an answer If you do not wish to concede, table your natural… June 7, 2025 at 2:46 pm
    • drdavidcreel.com
      drdavidcreel.com added an answer Dianabol is a steroid that is often used for bodybuilding… June 7, 2025 at 1:39 pm
    • Maltepe Masaj Salonu
      Maltepe Masaj Salonu added an answer Hmm is anyone else having problems with the images on… June 7, 2025 at 3:41 am

    Explore

    • Forum
    • Communities
    • Questions
      • New Questions
      • Must Read Questions
      • Trending Questions
      • Hot Questions
    • Polls
    • Groups
    • Add group
    • Badges
    • Users
    • Help

    Footer

    Embed Threads

    Embed Threads

    Join us on a transformative journey where knowledge is amplified and solutions are empowered.

    About Us

    • Blogs
    • Forum
    • About Us
    • Contact Us
    • Books

    Legal Stuffs

    • Privacy Policy
    • Adsense Disclaimer

    Help

    • Help
    • Contact Us

    Follow

    © 2024 Embed Threads. All Rights Reserved
    With Love by Embed Threads.