Exercise 2: Working with TCP/IP and WebSocket

Let’s test our understanding by attempting this challenge.

We'll cover the following

Let’s practice what we’ve learned so far. The solution to this exercise will be provided in the next lesson.

Problem

Develop a concurrent TCP server that generates random numbers in a range that is given by the TCP client. This can be used as a way of randomly picking values from a set.

To run the client side, open a new terminal window and copy and paste the command below into it. After running it, provide the range for generating random numbers as asked in the client program.

Get hands-on with 1200+ tech skills courses.