create thread and create socket