When using a script (or the command line) in order to deploy apps to a device you can use the phone’s device name (which seconds as a network name) in place of the ip address. For example instead of
blackberry-deploy -installApp -launchApp -device 192.168.1.104 -package PixelatedShapes.bar -password password
you could use
blackberry-deploy -installApp -launchApp -device BLACKBERRY-Z10E -package PixelatedShapes.bar -password password
This shortcut is particularly helpful to use when writting scripts, so you do not have to update the file every time that the phone is assigned a new ip address.