I have a main customer that I have finally got to switch over to Ignition for HMI use. (yay!)
Currently running Ignition Edge 7.9.13.
These are installed on a PC touch panel (gateway and client.)
I have a client event script that I am trying to run only in the client installed on the same hardware as the gateway. (Not on the secondary remote client.)
I’m syncing time with the PLC and don’t want a remote machine in a different timezone to send it’s time info.
I thought the easiest way would be to get the gateway IP address and the client IP address and check if they are the same. But I’m not seeing any good way to get the gateway IP address. Everything in system.net seems to only get client info.
I know I could just create a static string tag with the IP of the gateway, but I’m trying to design this once and not have to remember to change the tag from project to project.
I do see the tag System/Client/Network/GatewayAddress but it’s value is “http://localhost:8088/main”, so that doesn’t help.
Any thoughts on how I can accomplish this?