Accessing ESP32 stream over the internet

I have an ESP32 cam connected to my phone via hotspot. And I get stream from it as expected. Is there any way I can access that same webpage from anywhere on the internet? I mean from the devices which are not connected to the same hotspot.

what do you call hotspot? Is your ESP32 a WiFi station (creating a WiFi network which you joined) or your ESP32 joined an existing WiFi network (possibly the one created by sharing the connection from your phone) ???

if you want to access the ESP32 from over the internet, you basically need to have a route from the internet into your local network.

That won't work if the ESP is only connected to your phone re-sharing a 4G/5G internet connection as your operator won't let your phone be directly accessed.

if you have a router providing the wifi network then you can configure that router to open a port to reach the ESP32. that will poke a hole into your network and might compromise security if you don't know what you are doing. if the router does not have a fixed IP, you'll need to use a dynamic DNS approach to find your router from the Internet.

Sorry for my inexperience with technical terms. ESP32 joined the Wi-Fi network created by my phone's hotspot. I have the esp32 cam attached to a rover. My plan is to get video stream from it from a long distance, much longer than the range of a router, say one part of a country to another part of it. So I thought it might be possible having the esp32 cam connected to the phone's wifi via hotspot. And the phone will use cellular network to transmit that data.

Is there any way I can implement the idea without including wifi router?

Unfortunately it's not possible that way to my knowledge.

Your phone is within the operator network local network (LAN) and the operators do not allow incoming connections into the phones in their LAN. So there is no way by typing http://your.phone.IP.address/somehing that this will ever reach your phone and so can't go to the ESP32

You would need a real 4G/5G router and a cellular contract allowing the use of the router, ideally with fixed IP if your operator offers that. Then you would configure the router to open a port that would route the incoming traffic on that port to the ESP32. if you don't have a static IP, as I wrote, you'll need to explore dynamic DNS solutions.

if you don't know anything about routing that might be a bit complicated

Thank you.

should actually be quite simple if you reverse your thinking..
have ET phone home.. :slight_smile:

good luck.. ~q

Thank you for the hint. The implication is not making any sense to me. Please clarify your point.

Well, as you can not support incoming connections to the esp32, you have the esp connect back to you..
This is the same technique used by remote control apps to traverse firewalls..

~q

Not sure @shanto_kushtia can put together the stream relay if he has some fixed point the ESP-CAM could connect to…

me neither..

made a small demo..
same sending packet as my cam viewer, which I reused in this making..
32 bit int - image size
followed directly by image data which should also equal image size..

ESP32 Cam Server

should allow for viewing multiple cams, a new cam view form is created for each connection..
tested local but should be able to do some port forwarding and remote viewing..

needs a sketch, that's something for tomorrow..

bin is windows 32 bits, compiled with Delphi 12..

have fun.. ~q

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.