Programmatically Reset a Gateway Network Connection

Is there a way, via scripting, to reset a gateway network connection?

I had an issue this morning where one of our Edge gateways was reporting a Remote server rejected web socket: Duplicate connection error. We haven’t made changes to any of the gateways or added new gateways recently, so I have no idea how it got into this state. To “fix it”, I logged into the main gateway and reset the connection to the remote gateway. Has been running fine since.

1 Like

I don’t know the answer to your question, but we’ve had this issue too with regular gateways. There are some fixes related to this in one of the latest versions 8.1.7 or 8.1.8.

1 Like

Does anyone have a solution for this?

I'm not aware of a way to reset gateway network connections via scripting, but also haven't run into this problem for a long time. Are you running a current version?

So there is GatewayNetworkManager object that is accessible via scripting. Maybe start with that and see if any of its methods are able to be used to get a GAN connection and reset it.