Luna, this is the code I’m using for my client / server game right now.
[Object Oriented Networking Code with Panda3D Foundation)
You can copy / paste it into separate files. Open a command prompt (assuming you’re on Windows), and cd to the directory where you put the files. Then run
ppython test_server.py
in one cmd window, and
ppython test_client.py
in another one to launch the server and client on your computer. You can see what each is doing in the cmd window, as well as on screen.