This question already has an answer here:

As I understand it, my public ip is known for everyone who communicates with me over the internet. I'm concerned about security, and my doubt is, what can a malicious agent find out about me by knowing my ip? Is it unsafe not to use a VPN or a proxy for normal web surfing?

marked as duplicate by Steffen Ullrich, forest, schroeder Feb 3 at 12:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.