Address ⚑
Displays the resolved SSH connection IP address.
Import this State Bar Item to WebSSH
JavaScript Content
1
2
3
4
(function() {
return $vars.get('WEBSSH_CONNECTION_ADDRESS');
})();
Icon
signpost.right.and.left
Compatibility
WebSSH >=29.3
iOS >=17.2
iPadOS >=17.2
macOS >=14.0
Supported Targets
Linux
macOS
FreeBSD
Windows
Needed Capabilities
The table below lists the capabilities required for this script to operate. Capabilities marked as “Safe” are generally considered secure. Capabilities with a “Warning” level indicate that, while they are typically acceptable, their safety cannot be fully guaranteed in all scenarios. For your peace of mind, we recommend reviewing the script before running it.
| Capability | Safety Level |
|---|---|
vars_get | 🟢 Safe |
Additional Information
Simple script that retrieves the resolved SSH connection IP address. It uses the $vars.get method to access the WEBSSH_CONNECTION_ADDRESS variable, which contains the IP address of the current SSH connection. This can be useful for quickly checking the IP address of the connected host without needing to run additional commands or scripts.