The beautiful part is that they may have no idea which IP address corresponds to your email until you click a unique link in the phishing email (or load a tracking pixel?).
The scammer doesn't need to know the IP, they just send them to the root domain which automatically loads the ip of the viewer.
The website even has a utility to generate a URL that, when clicked, will log the victim's peer results while forwarding them to a harmless website: