# Console scripting works when accessing the internet but gateway timer scripts dont

**URL:** <https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341>\
**Category:** Ignition\
**Created:** [May 5, 2023, 7:58pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341 "2023-05-05T19:58:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elie\_Khananya](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@Elie\_Khananya](https://forum.inductiveautomation.com/u/Elie_Khananya)\
**Post date:** [May 5, 2023, 7:58pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341/1 "2023-05-05T19:58:56Z")

</div>

hello!  
here is the log, im trying to read a table from the internet and i see it in script console everything works great unless i use gateway timer scripts i tried doing it on the client side and didn't work either. could this be an IT thing if so how does the script console get access to the internet but the gateway doesn't this is also version 7.9.4

**com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File "", line 4, in IOError: Connection reset**

at org.python.core.Py.fromIOException(Py.java:215)  
at org.python.core.Py.IOError(Py.java:178)  
at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpGet(AbstractNetUtilities.java:258)  
at sun.reflect.GeneratedMethodAccessor764.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.python.core.PyReflectedFunction. **call** (PyReflectedFunction.java:186)  
at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction. **call** (ScriptManager.java:438)  
at org.python.core.PyObject. **call** (PyObject.java:387)  
at org.python.core.PyObject. **call** (PyObject.java:391)  
at org.python.pycode.\_pyx1912.f$0(:31)  
at org.python.pycode.\_pyx1912.call\_function()  
at org.python.core.PyTableCode.call(PyTableCode.java:165)  
at org.python.core.PyCode.call(PyCode.java:18)  
at org.python.core.Py.runCode(Py.java:1275)  
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:657)  
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:616)  
at com.inductiveautomation.ignition.common.script.TimerScriptTask.run(TimerScriptTask.java:86)  
at java.util.TimerThread.mainLoop(Timer.java:555)  
at java.util.TimerThread.run(Timer.java:505)  
Caused by: org.python.core.PyException: Traceback (most recent call last): File "", line 4, in IOError: Connection reset

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [May 5, 2023, 8:01pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341/2 "2023-05-05T20:01:27Z")

</div>

The script console is using the internet of whatever machine you're using to run the designer.

The gateway timer script is using the internet of the gateway. I'm assuming your IT is blocking internet access to that PC

---

<div class="post-metadata">

**Author:** ![Elie\_Khananya](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@Elie\_Khananya](https://forum.inductiveautomation.com/u/Elie_Khananya)\
**Post date:** [May 5, 2023, 8:02pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341/3 "2023-05-05T20:02:36Z")

</div>

yea ignition is ran on a computer that doesn't have internet access but im on designer on a rdp that has internet access, is there any other way of making this work?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 5, 2023, 8:03pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341/4 "2023-05-05T20:03:47Z")

</div>

Not in a gateway timer script. How would you imagine that working? As the name implies, _gateway_ scripts are being evaluated by the gateway.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 5, 2023, 8:05pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341/6 "2023-05-05T20:05:17Z")

</div>

> [@Elie\_Khananya](#):
>
> is there another way of running this script?

> [@paul-griffith](#):
>
> How would you imagine that working?

So, no.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 5, 2023, 8:05pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341/7 "2023-05-05T20:05:35Z")

</div>

Well, what are you trying to do? If it's in a timer script, why; you're trying to pull some data in periodically?  
It's a not great idea, and I would recommend against it, but you could have _client_ timer script that runs, pulls data, writes it into a tag. It would only run _while a client is open_, which is the biggest problem with it, but it's _possible_.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 5, 2023, 8:06pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341/8 "2023-05-05T20:06:21Z")

</div>

> [@paul-griffith](#):
>
> It would only run _while a client is open_, which is the biggest problem

Well, and then crushes you when a dozen clients are open.

@Elie_Khananya, your gateway needs internet access, to, you know, **access the internet**.

---

<div class="post-metadata">

**Author:** ![Elie\_Khananya](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@Elie\_Khananya](https://forum.inductiveautomation.com/u/Elie_Khananya)\
**Post date:** [May 5, 2023, 8:06pm UTC](https://forum.inductiveautomation.com/t/console-scripting-works-when-accessing-the-internet-but-gateway-timer-scripts-dont/73341/9 "2023-05-05T20:06:58Z")

</div>

thats a huge bummer, well thanks!
