creating socket conn