Thought I'd share this. I have no affiliation with the company in question; I'm just a satisfied customer.
My solution to date for a wired connection between iPad and laptop has been a pair of mio USB/MIDI cables, connected by a pair of back-to-back DIN socket adapters.
A couple of weeks ago I discovered the device below, decided to give it a chance, and all seems well. It features an advantage over my old solution, in presenting 4 virtual MIDI ports at each end of the connection, which could open up new possibilities.
Unfortunately the only explanatory video I've seen of this device is in Spanish, but I could get the gist, at least enough for me to part with my money.
https://sevillasoft.com/index.php/midi-usb-usb