It's unclear to me based on your post, but you do realize that public IPs very much count as personally identifiable information under the GDPR, right?
Assuming you had the public IP of an actual user though, how would you link it to a person without asking the ISP?
Ofcourse this evolves as the landscape changes. And it isn't always the case. But the comment is accurate.