The objective of this lab was to understand how to create a simple client/server and how to create an interactive client/server.
Computer with python installed
Notes and Oberservations
For this assignment, we had a couple pre coded client server python programs. After examining the code I understood how they would talk back and forth with one another. I inserted the IP address of my neighbors computer and he did the same with mine so that we could talk back and forth. First we start the server program. You have to talk to the server because that is where the information comes from. The you start the client program, this program is what talks back and forth. From here, you can type messages back and forth. This is an example of a simple client/server.
Next, we added a while loop with preset responses to interact with the person who is sending something to our address. For example, if he were to say “Hi”, it the server would say “Hi” back to him.
The last project that we did was we created a web client. By using this we were able to see the code for a website and also see the writing it to a file.