server listens for clients, and client connects to server