Ignition: Receive TCP MSG from device

Which program are you wanting to run in the gateway script? If you are referring to your .bat file you could use the system.util.execute function.

You should be able to configure the TCP driver to do receive the TCP message. If you are seeing 0/1 connections then maybe something else needs to be configured. Check your firewall settings, either disable (temporarily) or create an exception for the port being used for communication.