How to fetch data from devices connected with Ethernet ports in JavaScript

I need to write an application to get data from two devices, online thermal printer and smart camera. Both devices are connected with Industrial panel controller (IPC) on Ethernet ports. I want to code in JavaScipt for writing the application using NodeJs. I want to use the NET module of Nodejs for creating a TCP server connection to get data from both devices. In your opinion is it the correct idea of using the NET module for this purpose? As both devices are connected on the separate Ethernet port. Do I need to open two TCP server connections? that is one for each device or both devices may exchange data through a single TCP server connection.