This might be too hard to answer if you can’t actually test a server on a hotspot, but can I make an Apache server on a hotspot and if yes, will the phone that is making the hotspot be able to access it?
Eddie
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this communityThis might be too hard to answer if you can’t actually test a server on a hotspot, but can I make an Apache server on a hotspot and if yes, will the phone that is making the hotspot be able to access it?
Eddie
As I understand it, you have a mobile hotspot, and you wish to connect a raspbry pi to it, and use the pi as an apache server.
Using the pi as apache server is pretty well documented. Connecting the pi to a hotspot too.
The problem is the hotspot. Do you just want to serve systems that are connected to the same hotspot? In that case, make sure that client isolation is off.
If you want to serve pages to the rest of the Internet, it depends what is possible. If you can reach your hotspot from the Internet (so NOT from WiFi), then you could do port forwarding, if your hotspot supports it. I've seen it done with Androids phones. Nowadays, many telecom providers use CGNAT (Carrier Grade NAT), and if that is the case with your telecom provider, I would give up.