[package] allow a script to get the ip address, patch from Tomasz Fornal