>>/48543/
Not sure what to tell.
Google is good at gathering information, they built their whole enterprise on it, they have great amount of direct and indirect ways of gathering it, then they figure the rest of out from what they have. Whatever one's do in some ways it'll be known by Google. So getting the domain and IP of a website not much of a challenge for them.
What they show in their search results on Google Search, is just tip of the iceberg (databerg) what they have knowledge of, and they can decide what to display. They won't make you a favor to add your site in their search results, they want something in return. They know you made a website, they know where it is, they know the content, but they won't spill it that they know all this. They want you to be a user of their services (have a Google account). They want you to acknowledge it yourself that you have that website (tie the website to the Google account by registering it in Google Search Console). And they want more data, or ways to gather more data.
At the moment I can't demonstrate this (because what I found is replicable ofc), maybe I'll in the future.