Skip to content

Start a gRPC Server

grpc server

Output:

Listening on address: :50051
Try running:
grpc :50051 UnaryMethod '{"name": "Bob"}'

This will start a gRPC server (with Reflection) implementing the GrpcmdService. The methods within this service will also attach the incoming headers as outgoing headers.

Options

Address

By default, the gRPC server listens for requests on the address :50051. To listen on a different address, simply pass it in as the first argument. For example:

grpc server localhost:12345