I just checked a few links sent back and forth between me and another iMessage friend, both from within Messages.app on my Mac, and the synced Messages app on my iPhone. I don't see any IPs being displayed at the end of URL strings when I copy and paste the link from the generated previews. My friend would have definitely only ever sent links from their iPhone, but often I would send mine from the Mac.
How exactly do you find these leaked IPs?