Communicating with external applications over TCP/IP socket /websockets using gateway scripts

Hello @pturmel

Does that communication work in the customer perspective?
In my case I need the web page (made with perspective) to open the connection with a device on the local network.

Example:
1 - Gateway Ignition on network 10.172.1.0
2 - WEB client on the local network (192.168.1.10)
3 - Device on the local network (192.168.1.30)

I need the client (2) to send messages (socket) to the device (3).
Test the suggestions above and it doesn't work, it shows timeout.

Is there any way?

Thank you very much!

No, Perspective doesn't run scripts at the client. Not only does it not run scripts at the client, but its client runs in a browser, and browsers do not let you make such local connections (generally), as it is a huge security hole.

If you absolutely have to work with devices that are local to the client user interface, you need Vision, not Perspective.

2 Likes