Connecting jenkins url doesn't work

I am following the steps that the instructor is giving. I could not access the url http://172.18.0.2:8080(that is my jenkins IP and i used chrome browser) and am using macOS laptop. please why am i having that issue? thanks for your response.

May be the reason is firewall. Add details in firewall for Jenkins.

will do that and see, thank you.