Can we establish tcp socket connection to remote host from ignition client?

In this case, our Ignition client is running on different host machine from Ignition tag server.
Is it possible we establish tcp socket connection to another remote host from ignition client machine?

In Vision, yes, with scripting. A bit complicated to manage a background thread’s life cycle, unfortunately.

How can we use scripting in vision client to do this? Do u mind sharing me a sample?

Oh, some combination of these two topics:

These are scripts running from gateway. Can we run the scripts / establish the connection from the client PC instead?

Yes, same approach.