• 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 / RasPi Internet connectivity from anywhere

Q&A Forum › Category: Raspberry Pi › ESP32 / RasPi Internet connectivity from anywhere
0 Vote Up Vote Down
josh hiltabiddle asked 5 years ago

Okay, this is a networking question….and I am quite the noob
So I have a Raspberry Pi setup running octoprint that I can access from any computer (not just local). All that works great. I am using a no-ip DDNS address to access it.
To do this, I used DDNS and Port Forwarding (Port 80) in my router settings.
My question is….I want to also be able to do something similar (simultaneously) with an ESP32 that is configured as a web server, also connected to my home network. 
The RasPi is 192.168.1.20 and the ESP32 is 192.168.1.21
Since I have 192.168.1.20 forwarded, the DDNS points to the RasPi……
What do I need to do to access my ESP32 (192.168.1.21) from outside the home network?
Thanks…..Hope this makes some sense.

4 Answers
0 Vote Up Vote Down
Steph answered 5 years ago

Hello Josh,

You must assign 2 distinct ports on the WAN address of your router: 1 port that will redirect HTTP requests to port 80 of your RasPi and another port that will redirect HTTP requests to port 80 of your ESP32. For example :

http://myrouter.ddns.net[:80]/[path] --> 192.168.1.20:80 (RasPi)
http://myrouter.ddns.net:8080/[path] --> 192.168.1.21:80 (ESP32)
0 Vote Up Vote Down
josh hiltabiddle answered 5 years ago

Thank you!
I will give this a try.

0 Vote Up Vote Down
josh hiltabiddle answered 5 years ago

This worked. I found out where I was messing up.
Thanks for your help!

0 Vote Up Vote Down
Steph answered 5 years ago

All the better!

Regards
Steph

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.