How to know my ip address in network With getpeerinfo command I can get all directly connected peers ip addresses, how to know mine in the bitcoin network?
getnetworkinfo will tell you the IP address of your node if it knows what it actually is (or thinks it knows). It will be in the localaddresses field. Note that it may not contain your IP address or have the right IP addresses as it is difficult to know what your IP address is unless someone external tells you what it is.