Arduino Web Server (Port Forwarding)

Hello,
I am kind of new in the idea of Arduino and Internet...
But I want an idea about one of my projects.
I need to make a project and a part of it is to upload some sensor values on a server on the internet to access it from everywhere. But I will make it using an esp8266 or an esp32 that it would be connected to a phone's hotspot (That's why I don't have ethernet or wifi connection on my project place). So the Arduino would upload the values throw the phone's 4G. I searched a little bit on the internet and I find out that you need to edit your router in order to do something like that, but in my case, I don't have a router.

  1. First of all. Is this somehow possible??
  2. Is there an app for android/ios that I can use to configure those "Settings" like my router (I mean, Can I port forward a connection throw an android or an iPhone?)?
  3. Do you have any other ideas about my project?

Thanks in advance for any kind of reply!!!!! :smiley: :smiley: :smiley:

edit: I also have the ability to use an raspberry pi but I prefer not to use it because it's too old

It is entirely possible, but requires you to either have a fixed IP address for the access point (along with port mapping to forward messages from the AP to the server) or the "server" itself must have a fixed IP address, or some other means of gaining external access to the server via the internet. All that is simply an IT issue, which has little to do with the Arduino or ESP implementation of the server.

Regards,
Ray L.

RayLivingston:
It is entirely possible, but requires you to either have a fixed IP address for the access point (along with port mapping to forward messages from the AP to the server) or the "server" itself must have a fixed IP address, or some other means of gaining external access to the server via the internet. All that is simply an IT issue, which has little to do with the Arduino or ESP implementation of the server.

Regards,
Ray L.

Thanks, but the basic problem is that I don't have an AP. I have only my phone's hotspot.

Then the only way you can access it is by the phones IP (if it even has one), which will be changing often, or ,worse, a DHCP address, which is not accessible from the Internet at all.

Regards,
Ray L.

you want to upload to Internet?
that is not done with a Web Server and doesn't require any settings on router

Does the hotspot function on your phone have any setup features beyond just being turned on and off? There might be a chance that you might be able to use a dynamic IP service, but that might involve having both a client and server function in your code.