One machine can run many services. Ports tell them apart: 22 for SSH, 80 for HTTP, 443 for HTTPS, 53 for DNS.
ss -tulpn # which ports are listening (Linux) curl -I https://example.com # talk HTTP to a server