I\'m trying to create a very basic server in python that listens in on a port, creates a TCP connection when a client tries to connect, receives data, sends something back,
If you are trying to rerun the server without stopping the last instant of the server it won't work. If you want to stop the current instant go to
shell-->restart shell.
If you have already closed the shell without stopping the server go to the task manager and end task python process in the background processers. This will stop the last instant of your server.