There is a pretty good application that can solve this problem in single click of a button.
Get it from Google Play
Download WiFix from Google Play
How to use:
1. Install the above App.
2. Click the button ‘Fix IP manually’.
3. Read this post enter the details in the screen.
Now you can access internet.