# fx get-device-addr | |
print the Fuchsia address of the current selected device | |
```none | |
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](https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/devshell/get-device-addr) |