This is the source code of the android app available at https://play.google.com/store/apps/details?id=com.stackbuffer.clipboardsync
Download the app, tap on "Start Server" button and go to the given local ip address in the app on any device on the same network to get the clipboard data.