The client and server examples are meant to run together. Open a new terminal window and run dart server.dart While the server is running, open another window and run dart client.dart