I would like to connect a mobile device to the Raspberry Pi 4 Model B if possible without special software on the mobile device and start a script on the Pi from that device. My approach is to set up a hotspot on the mobile device to connect to the Pi, then use the Python REMote Interface library (Remi) as web-server via the Browser to start the script with a Button. To run the script properly I need an internet-connection.
The Problem: I need the IP-Address of the Pi to connect to the Remi web-server, which changes depending on the mobile device I use. I tried to set a static IP for the Pi, but it doesn't work with different mobile devices.
- Is there any possibility to get the IP of the Pi without using a terminal? -> On Android it is displayed sometimes, but not on iOS.
- Or is there any way I can access the web-server without the IP?
- Or the other way around: Can I set up an access point on the Pi and
still use the internet of the mobile device, after connecting it to
the Pi?
Thanks in advance