From 8cad507126b701b0831d6b39dfbfc5d49aa8590c Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Wed, 22 Apr 2015 10:22:06 -0700 Subject: [PATCH] mathserver listens on fixed port --- src/csharp/Grpc.Examples.MathServer/MathServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csharp/Grpc.Examples.MathServer/MathServer.cs b/src/csharp/Grpc.Examples.MathServer/MathServer.cs index 884a84d0a6c..f7429fb43f8 100644 --- a/src/csharp/Grpc.Examples.MathServer/MathServer.cs +++ b/src/csharp/Grpc.Examples.MathServer/MathServer.cs @@ -46,7 +46,7 @@ namespace math Server server = new Server(); server.AddServiceDefinition(MathGrpc.BindService(new MathServiceImpl())); - int port = server.AddListeningPort(host + ":0"); + int port = server.AddListeningPort(host + ":23456"); server.Start(); Console.WriteLine("MathServer listening on port " + port);