fx get-device-addr
print the Fuchsia address of the current selected device
usage: fx get-device-addr [--resource|--url]
--resource print the address in resource format (encased in [] if IPv6)
--url print the address in url format (encased in [] if IPv6 and url escaped)
get-device-addr source code