How do an IP address, a port, and a service relate on a server?
The IP identifies the machine, the port identifies a network endpoint, and the service is the program using that endpoint.
All three are interchangeable forms of the machine's network address.
The port identifies the machine, while the IP identifies only a process.
A service is only the numeric port and has no associated program.