The simplest and most reliable way of dropping some short text from PC to Android (as long as they are in the same LAN) is:

1) Run Termux and note your current IP with ifconfig.

2) Run nc -l -p [someport] on the Termux side.

3) Run echo 'yourtext' | nc [android_ip] [thatport] on the PC side.

4) Quit nc on the Termux side and copy whatever you received from the terminal window.

Of course, with longer texts, you can just redirect the output to a file and use cat instead of echo on the PC side. You can also install Termux:API Android package (and termux-api from Termux itself) to leverage termux-clipboard-set command to automate the last step.

Reply to this note

Please Login to reply.

Discussion

What about kdeconnect?

If you run KDE, sure. I don't.

I don't think it requires KDE, it's a Qt5 app. Your original point was "simplest" though and given the dependency tree of kdeconnect, you're right. Perhaps kdeconnect is easier.

Oh, also to your point, I see a chunk of KDE dependencies, just not the full desktop. Meh.