An IP address serves two primary functions:

  1. Identifying the host or network interface
  2. Providing the location of the host in the network

What makes an IP address so unique is that it allows devices to communicate with each other across the internet.

Source