Netcat (often abbreviated to nc) is a computer networking utility for reading from and writing to network connections using TCP or UDP.
BAT file for generate BIN files
@echo off echo FF0101>on.txt certutil -decodehex on.txt on.bin@echo off echo FF0100>off.txt certutil -decodehex off.txt off.bin
D:\Rabotna\Socat>nc -w 1 192.168.1.199 12345 < on.bin
D:\Rabotna\Socat>nc -w 1 192.168.1.199 12345 < off.bin