change socket protocol