Gateway Connection Timed out

Good Afternoon all.

For some background info. Ignition is installed on a remote server. (IT Controlled). I bring the Gateway up in my local browser, and launch designer from there. The application I built is a simple dashboard. I have two OPC tags linked to two text boxes.Under the property change script for both I have very simple queries to populate a couple of tables. The OPC tags have a refresh of two seconds through Top Server.

When I run the application inside the designer it will run non-stop never indicating an issue. When I run the application in staging it will have time of running good. Then through the diagnostic tool I will see some warnings about Gateway connection, and then it will loose connection. I don’t know if the is a network issue, or something else. If anyone has had this happen or is familiar with the issue let me know. Thanks in advance. Below is the error I recieve.

Message Connection to Gateway lost, due to exception.
Time Wed Mar 13 1:20:18PM
Severity WARN
Logger com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager
Stack Trace com.inductiveautomation.ignition.client.gateway_interface.GatewayException: connect timed out
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:341)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.getResponse(GatewayInterface.java:501)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:273)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:268)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.invoke(GatewayInterface.java:894)
at com.inductiveautomation.ignition.client.sqltags.impl.db.DatasourceTagManager$GatewayPoller.poll(DatasourceTagManager.java:679)
at com.inductiveautomation.ignition.client.sqltags.impl.db.DatasourceTagManager$GatewayPoller.run(DatasourceTagManager.java:592)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.getResponse(GatewayInterface.java:394)
… 12 common frames omitted