# Script to ping computer

**URL:** <https://forum.inductiveautomation.com/t/script-to-ping-computer/16612>\
**Category:** Ignition\
**Created:** [January 16, 2018, 6:27pm UTC](https://forum.inductiveautomation.com/t/script-to-ping-computer/16612 "2018-01-16T18:27:35Z")\
**Posts on this page:** 1\
**Showing post:** 18

<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 9, 2023, 1:09pm UTC](https://forum.inductiveautomation.com/t/script-to-ping-computer/16612/18 "2023-02-09T13:09:45Z")

</div>

Add `CAP_NET_RAW` to your SystemD service's `AmbientCapabilities`. That will allow `.isReachable()` to work in a non-root environment. (I recommend also using `CAP_NET_BIND_SERVICE` so you can use the standard http and https ports with a non-root service.)

> [@Issue with java.net module import in Ignition V 8.1.5](https://forum.inductiveautomation.com/t/issue-with-java-net-module-import-in-ignition-v-8-1-5/59496/4):
>
> If on Linux and not running as root, use of any ping-like raw packet requires the CAP\_NET\_RAW capability (privilege). You can specify that in the SystemD service file (or override) with the AmbientCapabilities=CAP\_NET\_RAW setting. You can specify multiple capabilities with whitespace. I recommend AmbientCapabilities=CAP\_NET\_BIND\_SERVICE CAP\_NET\_RAW.

---

_[View the full topic](https://forum.inductiveautomation.com/t/script-to-ping-computer/16612)._
