[AMPL 25027] No ampl license for this machine.

Hello everyone.
I’m a student and I’m new to Linux. I want to use AMPL to solve my formulas for my project. I downloaded the Community Edition and the AMPL C++ API. I extracted the tar file in Home/Downloads and ran ./ampl. In the second step (step 2), the site gave me a unique license to activate my software. I ran ./ampl in this directory and input the unique ID as instructed.

My problem is that every 5 minutes, AMPL shows the following message. When I run AMPL with sudo in its directory, everything is fixed (sudo ./ampl).

What is the problem and how can I fix it?

License file ./ampl.lic:
Short term lease expired. Please make sure your internet connection is working in order to renew the license.
Current directory = “/home/*/Downloads/ampl.linux-intel64”.
Today = *; found license file “./ampl.lic”:

Temporary AMPL, BARON, CONOPT, CPLEX, GUROBI, KNITRO, LGO,

LINDOGLOBAL, LOQO, MINOS, SNOPT, XPRESS, OCTERACT, COPT & MOSEK

single-machine server license expiring 20240514

licensed to AMPL Community Edition License for <@>:

******** c240f6b0 9a8018ed

HOSTINFO.PLATFORM.linux64

AMPL Version 20240313 (Linux-5.15.0-1059-azure, 64-bit)