I've been looking everywhere on how to do this and maybe I can't find what I'm looking for because I'm not using the right terms so let me explain in further detail.
I want to write a program that basically shows me all the information being sent between me and a server. For example if I'm playing a game on my computer that interacts with others playing the same game online. If I click a button on the game I want to see the corresponding command that is sent to the server and similarly I want to see what the server will respond with.
I'm not looking for any lines of code I just want to know the general idea of how I could do this so that I can look it up
Thanks to anyone who helps!