It is very important to understand this concept of how computers communicate because in cyberattacks there is one called “Man in the middle” which basically is what its name says. A hacker places themselves between your computer and a server to steal information.
Computers communicate with each other using their respective IPs or also with specific websites.
For example, if I open the terminal and type “ping www.facebook.com” I am literally sending packets to that server.