“Undefined External Error” is MIDI-OX’s least helpful message and one of its most common. It appears when you select a MIDI device or start a transfer, and it tells you only that the Windows MIDI driver underneath returned an error the program could not classify. In practice, the cause is usually simple: another application already owns the port. Most classic Windows MIDI drivers are single-client — one program opens the device, and every other program gets an error when it tries. This guide shows you how to find the program holding your device, free it, and set up an opening order that keeps the error away. For installation and basics, see the MIDI-OX download page and the tutorials hub.
Who else wants your MIDI port?
The list of suspects is longer than most people expect. A DAW is the obvious one — many DAWs open every MIDI input they can see at launch and keep them for the whole session. Standalone synth editors and librarians do the same. The sneaky suspect is your browser: Chrome and Edge support Web MIDI, and a single tab — an online editor, a firmware update page, a web synth — can claim your interface and hold it even after you switch to another tab. Background utilities count too: a second copy of MIDI-OX itself, a routing tool, or a manufacturer’s control app that starts with Windows. If the device worked yesterday and fails today, ask what is running today that was not running yesterday.
Step by step: freeing a locked device
Step 1 — Close everything MIDI-aware. Quit your DAW, editors, librarians and utilities completely — check the system tray as well as the taskbar, because several of these minimise instead of closing. Close browser windows entirely for the test, not just the tab you suspect.
Step 2 — Reconnect the hardware. With everything closed, unplug the interface’s USB cable, wait a few seconds, and plug it back into a port on the computer itself. This clears a driver state left behind by whichever program had the device.
Step 3 — Open MIDI-OX first. Launch MIDI-OX before any other audio or MIDI program. Go to Options > MIDI Devices and select your input and output. If the error is gone, you have proven the lock theory: MIDI-OX works when it gets the port first.
Step 4 — Reintroduce programs one at a time. If you need MIDI-OX alongside a DAW, open MIDI-OX first, then the DAW, and in the DAW disable the specific input that MIDI-OX is using, so the two are not fighting over the same port. Many DAWs let you enable and disable individual MIDI inputs — that setting is the long-term peace treaty.
If the error survives a clean start
Restart Windows and, before opening anything else, test MIDI-OX alone. If a lone MIDI-OX still reports the error, the problem is below the application layer: try a different USB port, check the device in Windows Device Manager for a driver warning, and confirm the interface appears at all using the checklist in MIDI device not showing in MIDI-OX. A device that only fails when a second program opens is a lock; a device that fails alone, first thing after a reboot, is a driver or hardware issue and should be troubleshot as one.
Why single-client drivers behave this way
The Windows multimedia MIDI API that MIDI-OX and most classic utilities use was designed when one program at a time drove a hardware port. The driver grants exclusive access, and exclusivity is actually useful for SysEx work — you do not want two programs interleaving data into the same instrument. The modern answers to sharing are virtual ports and multi-client routing, explained in multi-client MIDI explained. Until you adopt one of those, the working rule is simple: decide which program owns which port, and open MIDI-OX first when it is doing the delicate work.
Quick reference
- Error after opening a DAW or editor first → that program holds the port. Close it, reopen MIDI-OX first.
- Error with only a browser open → suspect a Web MIDI tab. Close the browser completely and retest.
- Error only on one of several ports → the port you actually selected is claimed; the others may be free.
- Error alone after a reboot → stop chasing locks; work the device and driver checklist instead.
MIDI-OX is freeware for non-commercial use, with commercial use requiring a paid licence after a 30-day trial. Its behaviour on Windows 10 and 11 is user-reported rather than officially supported, but this particular error is not a compatibility mystery — it is the single-client driver model working exactly as designed, and an opening order plus per-port discipline in your DAW resolves it.
A worked example
Consider a typical evening failure. You played a project in your DAW at lunch, minimised it instead of closing it, and opened MIDI-OX in the evening to back up a synth. The DAW, still running, still owns the interface it opened at lunch — so MIDI-OX reports “Undefined External Error” the moment you select the device. Nothing changed about your hardware, your drivers or MIDI-OX between lunch and evening; only the order in which programs claimed the port changed. Closing the DAW completely, then selecting the device in MIDI-OX, succeeds immediately. The lesson generalises: whenever this error appears, reconstruct what opened before MIDI-OX, in what order, and you will usually find the owner of your port sitting in the taskbar or the system tray, quietly holding a device it opened hours ago and never released.
