Skip to content

A simple draft to simulate clipboard sharing between a Linux computer and an iPhone.

License

Notifications You must be signed in to change notification settings

NicolasGresset/shared-clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shared-clipboard

A simple draft to simulate clipboard sharing between a Linux computer (later referred to as PC) and an iPhone (phone).

Both PC and phone must be on the same private network (typically your home network or your phone's personal hotspot).

The idea is to expose a web server on port 3333 of the PC.

Let's consider a private IP for the PC, e.g 172.20.10.4.

Whenever someones tries to access on http://172.20.10.4:3333/copy, the server copies the content of the clipboard of the PC and sends it over the network.

On the other hand, sending a POST request on http://172.20.10.4:3333/paste updates the content of PC's clipboard content with the request's body.

PC side

Find your private IP adress

Such can be done with the command

ip a

This will be useful in this section

Autostart the js script

The script always needs to run. I make it start with my window manager but you can choose any method that fits your needs. Note that restarting it accidentally is not an issue (it will prematurely abort complaining about an address already in use).

Phone side

todo

About

A simple draft to simulate clipboard sharing between a Linux computer and an iPhone.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published