The answer boils down to whether ASP.NET Core supports port sharing between multiple process (as gRPC server is just a special type of HTTP/2 service in a ASP.NET Core Server), and unfortunately it doesn't. See e.g. "All websites must run on the same Kestrel instance. Kestrel doesn't support sharing an IP address and port across multiple instances without a reverse proxy." (https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-6.0)
On Wednesday, July 6, 2022 at 9:20:18 PM UTC+2 Shaurya Puri wrote: > Hi, > > I am migrating an application from .NET Framework 4.7.2 (WCF) to .NET Core > 3.1 (gRPC), and my current architecture has two processes running on the > same port. I wanted to ask if there was a way to run two gRPC processes on > the same port in .NET Core 3.1. > > It is important to me that these be two individual processes, rather than > two services in the same process. > > > Thanks in advance. > Shaurya > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/48e87d92-0d00-43f9-9b33-91ec0470c256n%40googlegroups.com.