Hello learner
It could be possible that your firewall is blocking connection while reaching license server. Please go through below post on Firewall settings required to unblock ANSYS Discovery Products.
ANSYS licensing error
Let me know if this solves your problem.