Google indexed both IP and domain of website

I have a WordPress website hosted on GCP with a domain connected through Cloudflare. The issue is that Google has now indexed both the domain and IP address of the website.

And when I visit the website through the IP address, I can visit the website, without being redirected to the domain.

Can you share more information? As much of the following information as you can share is helpful.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.