added support for externalip and internalip that default to ip of machine (not loopback)