When you are having difficulty in connecting to the wireless network, you may not be getting a valid ip address from your router. one such instance is when you are getting a self-assigned ip address which starts with 169 (e.g. 169.254.x.x).. to resolve this issue, you can renew and release the ip address assigned to your ipad