Improved tcp command server