Verify ip string to be a valid ip address before publishing

Verify ipaddress of self-ip parsed while launching daemon is valid, this check is needed as invalid ip string is published to Discovery Server, which inturn sends this to the subscribers.