clienthelper setsocket now set connected to true, also add checks for anetwork when there is nothing ot listen