2 entries are registered on port 2223. It is a registered port (1024–49151) — IANA records an assignee, but nothing stops other software from listening here, which is why the number carries more than one entry.
Port 2223 is associated with the Microsoft Office OS X anti-piracy network monitor, a service primarily used by specific versions of Microsoft Office for Mac to detect unlicensed usage or installations. It generally communicates via UDP and is unofficially assigned for this function. The port facilitates internal messaging and license verification processes to uphold Microsoft’s software licensing terms.
The registry says what 2223 is registered to. What is listening on it right now is decided by the host, and only the host can be asked. Each of these prints the process behind the socket.
linux
ss -ltnp | grep ':2223\b'
macos
lsof -nP -iTCP:2223 -sTCP:LISTEN
windows
netstat -ano | findstr :2223
On Linux and Windows the process name comes back with the socket; on macOS lsof needs sudo to name a process that isn't yours. Match what it prints against the 2 entries above.
A port number is not a service. Anything may listen on 2223 — what you actually met is decided by the host, not the registry. If a service is missing here, it belongs in the registry.