This repository includes a basic C++ server application that allows you to send requests from a phone acting as a client to a PC acting as a server to execute specified instructions on the PC server.
- Features
- Prerequisites
- Getting Started
- Usage
- Setup Client
- Execution Result
- Accepts incoming connections from multiple clients
- Executes predefined commands based on client requests.
- Handles errors by writing the wrong message.
Make sure you meet the following prerequisites before you start:
- C++ compiler (e.g., g++)
- Linux-based operating system (the example is tested on Ubuntu)
- Basic knowledge of C++ and socket programming
-
Clone this repository to your local machine:
https://github.com/Youssef1502/PC_Control.git
-
Compile the server program:
g++ main.cpp Server.cpp -o myserver
-
Start the server:
./myserver
The server will start listening on the specified port (default is 8080).
-
Connect to the server using a client application or a terminal.
-
Send one of the predefined commands to the server, such as [ terminal / calendar / firefox / nautilus / sudoku / calculator ].
- Download Tcp Udp Server & Client
- follow these steps: