open socket for sending