I tried to connect to a public Wi-Fi on my MacBook Pro but can't do that. When I opened the network configuration it says something like "self assigned IP". In the meantime my iPhone connects to that Wi-Fi just fine.
I've tried all methods that I can find online, including renewing DHCP, deleting preference files in system folders, rebooting, deleting access passwords. None of them worked. I'm not connecting via router/modem so can't reset/restart them.