Fixed errors preventing the server and client to work.
Now works normal