I use a VPN and when I access some websites the IP used is different. How can I check what IP was used on curl? Is that possible?
I'm pretty sure this is not possible, i.e. not in a generic way.
The only way is to have the website report the source IP it sees and send it back as a header / part of the payload, etc. (Basically what the websites suggested in the other answer do)