Socket server creation fixed