In order to gain a greater understanding of how computers communicate with each other, I created a program that allows two computers to send messages back and forth.
This program communicates back and forth using a peer-to-peer networking module. It uses TCP for increased reliability, IPv4 addresses, and by default port 50007. Messages are inherently strings, which are encoded as bytes, sent, and then decoded as a string when the message is received. This program includes a GUI to make it easier to send and receive messages.
- Visual Studio Code (IDE): An IDE with great support for Python.
- Python 3.9.7: Python is a programming language, which this whole program was developed in.
- Socket: Socket is a low-level networking interface. It provides you with the necessary objects and functions to make network calls to the OS
- JSON: JSON is a library that provides function to read and store .json files. This was used to store the previous address and port so they could quickly be reused.
- TKinter: This library is used for creating GUIs. Currently it is not being used, but will soon provide a way to easily see and send messages.
- Validate IP address and port before submitting
- Make messages send on enter keypress