mac control with socket