According to the error message, you should configure AAM for the web application.
Open the SharePoint Central Administration -> Click Alternate Access Mappings in the System settings -> Select the web application corresponding to http://lgemp -> Edit Public URLs -> Add http://127.0.0.1 in the Internet zone.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.