This is my scenario,
We have some sensors on different sites, these sensors are connected with
some equipment having SIM cards in it to allow the internet connection. On the other hand, we have a Linux based server where we are running some applications to request new data from those sensors by socket programming using the IP address of those SIM cards. Recently we have connected the raspberry pi (with ip camera) to record the videos/images locally on the pi's SD card. Currently Raspberry pi is connected with
the equipment over the WiFi and it uses SIM data for internet connection.
Now in case of an event we want to upload some images from the pi to the ftp server.
The problem is Pi does not know when the event occurred, only the web application decides when the event has occurred (which is running on the server). Raspberry Pi is only using the internet, it does not communicate with the sensor at all.
I have to write some script on the server which will go to the pi and upload some files from the pi to the ftp server.
Someone suggested that I could use scp, but how do I get to the raspberry pi? I only have the IP address of the SIM card... and when I connect the raspberry pi with SIM, it assigns a private IP which the server cannot see.
Can I connect Raspberry pi with the router in such a way that I can access the pi with the same IP address (of the SIM card) but on different port.... This is how I connected the IP camera...
Any help is appreciated.