Default Can't connect to a hotspot

Hey guys , I am unable to connect to any wifi hotspot around. It stops abruptly after it tries to obtain IP address.
Though when it comes to sharing , I can very easily share my connection with others by becoming a hotspot. It's just that I am unable to connect to any wifi hotspots.

Sent from my GT-I9152 using XDA Premium 4 mobile app