Android is linux so it should allow you to but you need to go in root menu and maybe even root your phone. I recently made this console (free and open source) which allows you to easily change your mac address and all other cools stuff. It works perfectly on linux based systems so if you go to root menu and clone it it should work there too.
this is to fetch a public ip, and is dependant on amazon's aws check ip service which might eventually change or disappear one day, and only works if the device has access to internet. on a local network, or when offline, it will not work. furthermore, notice that the checkip service is not secure, and can therefore be faked by a man in the
Dịch Vụ Hỗ Trợ Vay Tiền Nhanh 1s.
change ip address android free