enabling connection with socket