The field can be 1x1 and it will still work.
It can be placed outside of the accessible area of a layout.
Perhaps it will still work when hidden via inspector?
You could also use a webviewer object the same way as insert URL.
Another option might be to build functionality that executes a OS level script that, in turn, executes a PING command and validates the ping return.
It can be even outside the layout margins
Thank you for the suggestions
Which one do you prefer to use?
i like insert url with a field off screen
insert from URL into a global, remember to take it out from tabbing order.
Put the whole into a script that goes to a specific layout where the global is then goes to original layout, returning the error via Exit script and evaluate get(ScriptResult).
Thank you all for your suggestions