Adding serversocket to configurations and removing hardcoded variables