I had restarted my router and let it assign a new DHCP address to my IPAD. It is working now..
What I remember is that my IPAD can serve internet and that make me belief its internet connection is fine.
Previously I had set a reserved IP address for the IPAD in the router but looks like this is given a problem.