Direct Input is not possible in old Unity (mabye in the 2022 version).
So you need to use a console app to read the DirectInput and sent them out with UDP:
https://github.com/EloiStree/2022_10_20_DirectInputSharpToBoolean
The application allows you to share the DirectInput to Udp from a file type given.