I'm asking how to communicate these two sbc
TWO SBC is
- Raspberry Pi
- Raspberry Pi zero
How to communicate remotely through the internet. The sbc connected to the internet, not a local network connection. can I communicate these sbc
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Saravanan GanesanPosted Aug 4, 2023, 7:53 PM
Yes, you can communicate remotely between Raspberry Pi and Raspberry Pi Zero over the internet. Here's a general outline of the steps to achieve this:
Assign Public IP or Dynamic DNS: Ensure that the Raspberry Pi (or Raspberry Pi Zero) connected to the internet has a public IP address or use Dynamic DNS to create a hostname that points to its dynamic IP address.
Port Forwarding: On the router or network firewall, configure port forwarding to forward specific ports (e.g., SSH, VNC, or custom application ports) from the public IP to the private IP of the Raspberry Pi on your local network.
Secure Communication: Implement secure communication protocols, such as SSH for command-line access or a VPN for a more comprehensive secure connection between the two devices.
Firewall and Security: Configure the firewall on both Raspberry Pi devices to allow incoming connections only from specific IP addresses or IP ranges to enhance security.
Remote Access Software: Consider using remote access software like VNC (Virtual Network Computing) or TeamViewer for graphical desktop access to Raspberry Pi's desktop environment.
Cloud-Based Messaging: If you need to exchange data or messages between the two devices, you can use cloud-based messaging services like MQTT or a WebSocket server hosted in the cloud.
VPN (Optional): For enhanced security and to create a direct connection between the two devices, you can set up a Virtual Private Network (VPN) using services like OpenVPN.
Keep in mind that remote communication between SBCs over the internet introduces security risks, and it's essential to implement appropriate security measures like strong passwords, encryption, and regular software updates to protect against potential threats. Always follow best practices for network security and data privacy.