Check socket