Looking for simple multiplayer networking guide for a project

Hello blender community,

I’m a student working on a project, where we have to make a game and let players connect to eachother under LAN. I got a very simple cube movement script, and want now I want another cube to join eachothers sessions via simple client server script. I know how to send messages via sockets outside blender, but not how to implement my game code into a simple networking script.

import bge

class Player():

   def movement():
       cont = bge.logic.getCurrentController()
       player = cont.owner

       # WASD controls
       keyboard = bge.logic.keyboard
       if bge.logic.KX_SENSOR_ACTIVE == keyboard.events[bge.events.WKEY]:
           player.applyMovement((0,.1,0), True)
       if bge.logic.KX_SENSOR_ACTIVE == keyboard.events[bge.events.SKEY]:
           player.applyMovement((0,-.1,0), True)
       if bge.logic.KX_SENSOR_ACTIVE == keyboard.events[bge.events.AKEY]:
           player.applyMovement((-.1,0,0), True)
       if bge.logic.KX_SENSOR_ACTIVE == keyboard.events[bge.events.DKEY]:
           player.applyMovement((.1,0,0), True)

this is my movement code, for a simple cube to move. I tried gorans tutorial but it didnt work with my own code. Does anyone have some examples or good guides I could use?