Question

I am developing an android application which calls http requests. The rest API is on the same laptop (using wamp). I test the API over post man (Chrome plugin), and I get the right response after ~21s ...The strange thing is, I have received immediate answer when the api was on an other pc and other network.

I didn't change nothing on the wamp config (and I have the same version) or on the code of the rest api. The api was written in Laravel by someone else, and worked fine on the previous laptop/server.

How could I solve this?

Was it helpful?

Solution

I just noticed that the CMS loads very slow too. I solved the issue by changing "localhost" to "127.0.0.1" in laravel/app/config/database.php

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top