Handle the network part on rasberryPi and server