Please tell me how I can control Kodi using a TV remote over TCP/IP.
Here’s an example of what can be achieved.
GitHub - Ape/samsungctl: Remote control Samsung televisions via a TCP/IP connection
Remote control Samsung televisions via a TCP/IP connection - GitHub - Ape/samsungctl: Remote control Samsung televisions via a TCP/IP connection
github.com
Do a bit of research based on that concept.
No doubt you’ve seen the difficulties that surround the whole subject of CEC. It really is hit and miss and not a lot of support with it either. As you can see here there isn’t a huge response to your query.
I’ve no idea what device you purchased but reading through this it may be suitable for your needs but again you’ll only ever really know when you have it in your hands to test. https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter