Open socket in binary.