Sending to socket doesn't work