Project Logo is not available
This project enables you to control your Raspberry Pi over the network, whether it's a private or public connection. The implementation involves Python scripts for both the client and server sides.
This documentation corresponds to Version 1.0 of the project.
Execute the following commands on the remote PC or another Raspberry Pi:
python client.py This will establish a connection with the server.
Run the server script on your Raspberry Pi:
python server.py The server will wait for a client to connect.
The client can send various commands to the server, and the server will respond accordingly. For instance, a command like "reboot" will be translated on the server as "sudo reboot". Feel free to create your own set of commands.
On the server side, the "Find Local IP Address" section can be omitted if any issues arise from system changes. In such cases, remove the "#" from the "#ip='192.168.219.168'" line and use your own server IP address.
Address Already in Use Error The server code is designed to handle the "Address already in use" error (socket.error: [Errno 98]) by employing a try/except block. If you encounter any problems related to system changes, consider removing the following line:
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) Feel free to comment and ask any questions. Contributions are welcome—fork the project and showcase its full potential!