Every computer that connects to the Internet is assigned an IP address by the Internet Service Provider, and other computers on the Internet reach that address on that computer. Even if two different devices with IP addresses are not on the same network, they can communicate with each other through routers.