How to send data to ports of client system?

Hi Friends,

I have an ASP.NET Core MVC application, that I want to connect it to Point of sale (POS) device, and send payable price to pos and then pos send back the result. I want to run these operations on client system. How can I send data to ports of client system?

Please give me some advice

Thanks in advance.