I think the OP is confused by the general advice not to publish your IP address - if web sites publish their address why is it bad?
The answer being that if you want somebody to connect to your site you MUST publish your address, but if you aren't running a server then there is no need to and no reason to attract potential bad actors to your IP.
If you are running a router that does NAT (your LAN addresses are different from your WAN address) you are generally pretty safe - your router just drops uninvited traffic.