It is great that you are practicing and actully got something running.<p>If you want to look for inspiration from an established tool, check out wormhole. Their UX is extremely simple.<p><a href="https://magic-wormhole.readthedocs.io/en/latest/welcome.html" rel="nofollow">https://magic-wormhole.readthedocs.io/en/latest/welcome.html</a>
If you do not need the features of this program, then you could just use "tar | nc" for sending and "nc | tar" for receiving, I suppose.