start server, connect socket