83 votesThopTv commented
Another method you can try to fix the failure to obtain an IP address is sitting in your device's settings. Open Settings and make sure you've turned on Wi-Fi on your device. Long-press or tap on the network you want to connect to. Check the box that says “Show Advanced options” and tap on the “IP settings” menu.