GoRemote is a remote mouse project that allows you to control mouse actions from your mobile phone (preferably android) (left-click, right-click) and send mouse coordinates over a WebSocket connection. This README provides an overview of the project and instructions for setting up and running the server and client components.
- Control mouse actions remotely: left-click and right-click.
- Send mouse coordinates to the server for remote control.
The server component of GoRemote is written in Go and handles WebSocket connections from clients. It receives mouse coordinate input, left-click, and right-click commands from the connected clients. Designed to run on windows machines.
-
Clone the GoRemote repository to your local machine:
git clone https://github.com/OguzhanKazak/goremote.git
-
Navigate to the server directory:
cd goremote/server -
Install the required dependencies:
go mod download
-
Start the server:
go run .The server will start running on the default port
8080. You can modify the port in themain.gofile if needed.
OR
-
Clone the GoRemote repository to your local machine:
execute /build/goremote.exe directly
The client component of GoRemote is a web page (client.htm) that contains JavaScript code for sending mouse actions and coordinates over the WebSocket connection. Client should change the local ip address to the host's local ip and port before open the file.
-
Open the
client.htmfile in a web browser. -
Connect to the server by clicking the "Connect" button on the web page.
-
Once connected, you can perform the following actions:
- Left-click: Default touch action on android.
- Right-click: Keep touching same point to activate rightClick event.
- Mouse coordinates: Move your touch point, and the current touch coordinates will be sent to the server.
Contributions to GoRemote are welcome! If you find any bugs, have feature requests, or want to contribute enhancements, please submit an issue or create a pull request on the GitHub repository.
For any questions or inquiries, please contact oguzhankazak@outlook.com.