A server is a computer program or a machine that waits for requests from other machines or software (clients) and responds to them. [a] The purpose of a server is to share data or hardware and software resources among clients. This architecture is called the client–server model.
A router is a networking device that forwards data packets between computer networks. Routers perform the "traffic directing" functions on the Internet. A data packet is typically forwarded from one router to another through the networks that constitute the internetwork until it reaches its destination node.