February 2019
Intermediate to advanced
672 pages
16h 50m
English
There are multiple steps to running the following server example. First, we need to run the script to start the server, from which you will obtain the following output:
> python example1.pyServing on ('127.0.0.1', 8888)
Notice that the program will run until you invoke the Ctrl + C key combination. With the program still running in one Terminal (this is our server Terminal), open another Terminal and connect to the server (127.0.0.1) at the specified port (8888); this will server as our client Terminal:
telnet 127.0.0.1 8888
Now, you will see some changes in both the server and the client Terminals. Most likely, your client Terminal will have the following output:
> telnet 127.0.0.1 8888Trying 127.0.0.1... ...