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