Every device gets an IP address. At home these are private addresses like 192.168.1.x, handed out by your router (DHCP). The router has one public address that the whole internet sees.
ip a # Linux: your addresses ipconfig # Windows ip route # your default gateway (the router)