All my local sites are not working

It was resolved by this solution on All websites get connection refused status and URL contains port number - #8 by robbertv

I don’t know when I checked the “ato-detect open ports” checkbox. Anyway my local sites are working by unchecking this checkbox.