I am developing a stock management system for the company and the customer needs the system to print the labels on a special printer for labels (Datamax I-4210) registered products.
The system is web-based and stays on a server in-house and is networked with the printer.
Yesterday I spent all day researching solutions but I did not succeed. Actually I know that it is possible to send commands to printers by socket , but it is my first experience with such functionality and I am really well lost. I have no problem sending sockets and until sending commands, the problem is that I can connect to the printer to send the commands.
The problem itself is finding the printer's IP and port so I can send the sockets with the commands. In the company my client already uses a desktop program called BarOne and he can print the labels. Probably because it is a desktop software it manages to network the printer and get the data it needs to somehow send the commands. The same can not be used by me since the system is in PHP and I can not get this data from the printer.