This is alpha of a method to throw MIDI reliably over an IP connection. Only earliest testing completed. Contribution solicited!
To try it, [compile and] install the Mido library, and run these in separate xterms. On this machine python3 didn't work for it, so:
python2 tcp2midi.py localhost:44440
python2 midi2tcp.py localhost:44440
then in your JACK or ALSA patchbay, connect RtMidiIn-Client to your MIDI source, e.g., a USB MIDI interface attached to a keyboard controller, virtual MIDI keyboard, or anything else. Then play notes and watch the readouts!