Give the possibility to specify an IP in meta data of register()

If a host has more than one IP (e.g. a private and a public one), the automagical discovery fails. You should be able to specify the IP to use in the metadata.