# System Function for pinging an IP through script

**URL:** <https://forum.inductiveautomation.com/t/system-function-for-pinging-an-ip-through-script/58402>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [April 13, 2022, 7:03am UTC](https://forum.inductiveautomation.com/t/system-function-for-pinging-an-ip-through-script/58402 "2022-04-13T07:03:39Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [February 21, 2025, 6:36pm UTC](https://forum.inductiveautomation.com/t/system-function-for-pinging-an-ip-through-script/58402/9 "2025-02-21T18:36:49Z")

</div>

Follow Tyler's instructions here:

> [@Script to ping computer](https://forum.inductiveautomation.com/t/script-to-ping-computer/16612/19):
>
> Here is a lengthy recap of the steps that lead to success in using java.net (InetAddress, isReachable) on a Linux server (Ubuntu 20.04.5 LTS) with Ignition running as a non-root system user account. Ran this command... sudo systemctl edit Ignition-Gateway.service Added this text... then saved changes. [Service] AmbientCapabilities=CAP\_NET\_RAW CAP\_NET\_BIND\_SERVICE Restarted the Ignition gateway... sudo /usr/local/bin/ignition/gwcmd.sh -r Confirmed the service was running without err…

I highly recommend **not** shelling out to the system's `ping` executable.

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-function-for-pinging-an-ip-through-script/58402)._
