check socket