A simple solution for sharing the clipboard between 2 computers over the Internet. It can be used to share text, images and files from a remote desktop session to your local computer. Even if the remote desktop session does not support clipboard sharing.
- Share clipboard between 2 computers
- Share text, images and files
- Download the latest release from the Releases page.
- Extract the downloaded zip file to a folder of your choice.
- Open
CloudClipboard.dll.configand set the required values.- You need an Azure Storage Account. Set the connection string in the
StorageConnectionStringfield. - Create a blob container and set the name to the
StorageContainerfield. - Create an Azure Service Bus Basic namespace and set the connection string to the
ServiceBusConnectionStringfield. - Set the local and remote computer names in the
LocalNameandRemoteNamefields. On each computer, theLocalNameshould be unique and theRemoteNameshould match theLocalNameof the other computer.
- You need an Azure Storage Account. Set the connection string in the
- Run
CloudClipboard.exe. The tool will run in the background and has no user interface. You can close it from the Task Manager.- Put a link in
shell:startupto start the app automatically on login.
- Put a link in
- Copy something on one computer and it should be available on the other computer's clipboard.
I had to work on a remote desktop session that did not support clipboard sharing. I wanted a simple solution to share the clipboard between my local computer and the remote desktop session. I could not find any existing solutions that worked for me, so I decided to create my own.
It is a Windows Forms app because it is easy to create a hidden app that runs without a console window. It also makes it easy to add a system tray icon in the future.
The application monitors the clipboard for changes. When a change is detected, it uploads the clipboard content to Azure Blob Storage and sends a notification to the remote computer using Azure Service Bus. The remote computer then downloads the clipboard content from Blob Storage and updates its own clipboard. For text content, the text is sent directly via Service Bus without using Blob Storage.
The costs are minimal. Azure Blob Storage and Azure Service Bus Basic are both very cheap. The exact costs will depend on the amount of data you transfer and the number of messages you send, but Service Bus Basic costs around $0.05 per million operations and Blob Storage costs around $0.0232 per GB per month plus costs for transactions (read/write).
See the Azure Pricing Calculator for more details.