Checking socket in after connecting