PHP Laravel: No connection could be made because the target machine actively refused it PHP Laravel: No connection could be made because the target machine actively refused it laravel laravel

PHP Laravel: No connection could be made because the target machine actively refused it


sometimes maybe caching problem:

    php artisan config:clear


I changed the ip address specified in the homestead.yaml from localhost to 192.168.10.10. Then I ran homestead provision and that seemed to fix the problem. The host machine cannot resolve localhost or 127.0.0.1 because that is already mapped to itself.


I got this error because I forgot to start MySQL in the XAMPP controller.