In more detail
IPv4 addresses are 32 bits, written as four numbers from 0 to 255 such as 192.168.1.10. IPv6 addresses are 128 bits, written in hexadecimal. Addresses in the private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) work only inside a local network, while public addresses are reachable on the internet. A Subnet mask splits an address into network and host parts.
Example
Your home devices may be 192.168.1.x, while the whole house appears to websites as a single public address. Look up yours with the What's My IP?.