@yayay23
I can't reproduce your problem. Make sure you are using profiles correctly. If the problem is still relevant, please attach a test project in which you can repeat the problem.
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.