Network Actions

Table of contents

  1. IP Address
    1. Get External IP
    2. Get Local IP
    3. Is Online
  2. Server
    1. Connect to Server
    2. Run SSH Script
  3. Wireless
    1. Get Cellular Detail
    2. Get WiFi Detail

To use actions in this category, use this include statement:

#include 'actions/network'

IP Address

Get External IP

Get the users external IP address.

enum IPTypes {
    'IPv4',
    'IPv6',
}

getExternalIP(IPTypes ?type = "IPv4"): text

Get Local IP

Get the users local IP address.

enum IPTypes {
    'IPv4',
    'IPv6',
}

getLocalIP(IPTypes ?type = "IPv4"): text

Is Online

Determine if the user is online. Alias for get Get External IP.

isOnline()

Server

Connect to Server

Connect to file server at url.

connectToServer(text url)

Run SSH Script

Run an SSH script using connection details.

enum SSHScriptAuthType {
    'Password',
    'SSH Key',
}

runSSHScript(text script, variable input, text host, text port, text user, SSHScriptAuthType authType, text password)

Wireless

Get Cellular Detail

Get a detail of the current Cellular network.

enum cellularDetail {
    'Carrier Name',
    'Radio Technology',
    'Country Code',
    'Is Roaming Abroad',
    'Number of Signal Bars',
}

getCellularDetail(cellularDetail detail)

Get WiFi Detail

Get a detail of the current WiFi network.

enum wifiDetail {
    'Network Name',
    'BSSID',
    'Wi-Fi Standard',
    'RX Rate',
    'TX Rate',
    'RSSI',
    'Noise',
    'Channel Number',
    'Hardware MAC Address',
}

getWifiDetail(wifiDetail detail)

Copyright ©. Distributed under the GPL-2.0 License. Siri Shortcuts and Mac are registered trademarks of Apple Inc. Apple is not involved in this project in any way. Do not contact Apple Support unless you are having an issue with the Shortcuts app itself.