Redirect loop error on wordpress landing page on localhost

I for instance have MAMP pro running with custom development URLs like project.dev. When I created the one-click installation of WordPress through MAMP, it automaticly entered the port-number into WordPress as well. I don’t think WordPress likes when the port-number is :80 which is standard. Removing the port-number from WordPress Address and Site Address did the trick in my case.