This is a small app that enables users to send midi data through UDP. If you want to adapt settings to your MIDI controller see full code here: https://github.com/louiszawadzki/midi-udp