Question: Need help with this. Write a Python server application to do the following: Listen on a random port between 10000 and 20000 using TCP- on
Need help with this.


Write a Python server application to do the following: Listen on a random port between 10000 and 20000 using TCP- on all interfaces (IE: host") Note: it must use the socket interface covered in class (IE: import socket) and not any other addon, method, technique, etc. You can pick a random socket, it does not need to be randomly generated Initially, the server app should display (print to the screen) the host and port it is listening on The app should be capable of receiving a line of data and perform the following functions: 1) Locally echo the data line received to the screen on the server side 2) Echo the data line received back to the client The app should also check for the existence of the word "echo" in the data line and: 1) Locally echo "echo found!" to the screen on the server side 2) Echo "echo found!" to the client (do not include any of the quotes, of course) The app should also check for the word "exit" in the data line and: 1) 2) 3) Locally echo "exit found!" to the screen on the server side Echo "exiting now!" to the client Close all sockets and exit the server app
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
