Core file of the server-side script

This is the server program. The UI of this machine which is used as server is shared with the clients.