Only register the device if we have an ip address and port. Store the ip address and port.