c # – Need to develop a client-server system

I need to write a client-server system from crushed.

The requirement is as follows:

  1. There would be multiple servers and several client applications.
  2. Clients can access any server.
  3. The r / w -able files are kept in the server application.
  4. A client can request the server to r / w files with locks so that other clients can not write during read / write.

I know that there are many examples of applications available on the Internet. But, they talk about a server and several clients.

I need multiple servers and multiple clients.

So what should I do?