Search code examples
pythonraspberry-piconnection

Is there a way to connect 2 rasberryPi's over wifi for long distance communication?


I am currently looking to enable 2 RPi's to communicate over the internet for long distances, I plan to write the scripts in python, I would appreciate a list of technologies and concepts that will guide me to accomplish my goal.

Any help is appreciated Thank You


Solution

    • Continuous communication over WIFI: Sockets library (recommended in most cases).
    • Periodic communication over WIFI: Email library (alternative libraries exist depending on what you need).
    • Periodic communication with no WIFI: SMS library (alternative libraries exist depending on your needs).
    • File transfers: FTP via ftplib (preferred) or even a synced dropbox file (dropbox works on linux).

    * In order to connect sockets/FTP you will probably need to port forward or use Hamachi.