[PATCH v2] server: Derive protocol in create_socket if not given