Just go to WiFi setting, after giving password tick the next box below.
Tick the second box in the pop up window touch the ''static''
The you get 4 rows
IP
Then default gateway or mosque
Etc
You provide correct numbers there.
If you do not know Google for your network by typing the IP address etc for your network
Provide the correct numbers and restart
It is done enjoy
Sent from my Spice Mi-535 using xda app-developers app