Your IP address is the address your device uses on the internet. Every website you visit can see it.
IPv4 is the classic format, such as 203.0.113.42. IPv6 is its successor with far more addresses, such as 2001:db8::1. Many connections have both.
A location based on your IP is an estimate and is often off. The precise location button uses your browser's real position, only with your permission.