It sounds like a license issue. Did you add any licenses to the ESXi host? Is the evaluation license still valid? Are you trying to add an ESXi host that is using the same IP address as a previous ESXi that was using a free or expired license?
It was giving error as I was using the vcenter IP instead of Host/ESXi IP. I tried with Host IP and it worked fine.