Mutiple network addresses
Works a treat! Very simple to set up and use.
One wee problem I encountered though: where I'm at just now my PC has multiple network connections open: LAN and VPN. When the ClipSync server started up it was listening to the VPN address which ison an entirely different subnet to the LAN connection. So my Nexus, which was connected on the LAN subnet, couldn't find the server. When I disabled the VPN connection the server switched over automagically
to listen on the LAN address and was found straight away by the Android app. A way to specify which IP address the server listens on would be great in this instance.
Another concern is using this in a multi-android environment e.g. at work the standard issue phone is a Galaxy Nexus so there's quite a few conected to the LAN at any one time. What's to stop someone installing the app and connecting to another users ClipSync server and getting / setting the contents of their clipboard? I'm being picky I know, but it's something I had to work around when writing a webOS app many moons ago that would use mDNS to broadcast stuff across a network. Setting a PIN on each client and using that to encrypt / decrypt broadcasts was where I ended up for that FWIW.
Also, if the server restarts, clients don't reconnect until you go into the app and manually reconnect.
I've just tried copying something on my Nexus 7 and it synced, not only to the server, but to my GNex as well
Shutting down the server, unsurprisingly, stopped that particular magic from happening *sadpanda*. A feature request would most certainly be to allow clients to sync with each other without the need for a server to be running at all. You hate me, I know
I've no idea what the mDNS capabilities of Android are but that would be one way of doing it.
All that said, this is a fantastic start to something extremely useful! So thank you very much for making the magic happen
and apologies for the rather rambling post