A) Settings > Wi-Fi > find the current network > Modify network and then select Show advanced options. B) Here, find IP settings and set its value to Static. C) Change primary DNS settings to 126.96.36.199 and the second DNS option to 188.8.131.52.
Thanks for the suggestion however we are using DHCP for IP addresses and having different DNS to redirect our login page. Also this is on mobile phone (android) which not allow us to set DNS without using static IP address.