create socket in temp directory