get threadnumber from server