For those who needs this later, you can set up http proxy and send a simple get request to https://api.ipify.org , it will give you the ip adress in plain text, no need to parse the json.
One of many simple and easy ways to do it.
Create a condition if the proxy dies or ERROR ?
-
@BAS-Viet-Nam SOLVED, thanks brother.. i use if was error with looping 🙏

