I'd try to specify the channel target as "a.b.c.d:3280" without the 
"http://"; prefix. From the error it looks like the URL is being interpreted 
as a DNS name (rather than an IP).
https://github.com/grpc/grpc/blob/master/doc/naming.md

On Monday, March 22, 2021 at 3:23:06 PM UTC+1 Christian Havel wrote:

> Hi,
> I would like to add the information, that the gRPC server is a console 
> application, not a ASP.NET Core application.
> Christian
>
> Christian Havel schrieb am Montag, 22. März 2021 um 14:23:50 UTC+1:
>
>> Hi,
>>
>> I started to play around with gRPC. I have a very simple gRPC service in 
>> .NET Core 3.1.
>> Then I wrote a .NET Core 3.1 client. Both applications are running on the 
>> same machine.
>> Everything works fine.
>>
>> Now I try to connect my gRPC server from a .NET Framework 4.8 client 
>> (Windows Forms), that fails with the following exception:
>> [image: grpcerror.PNG]
>>
>> I create the channel on the client like this:
>> *var channel = new Channel($"http://{ip}:{Port}";, 
>> ChannelCredentials.Insecure);*
>> * _serviceClient = new BridgeService.BridgeServiceClient(channel);*
>> *var request = new HelloRequest {Name = "Franz"};*
>> *var reply = _serviceClient.SayHello(request);*
>>
>> This is the server side:
>> *var credentials = ServerCredentials.Insecure;*
>> *var hostName = Dns.GetHostName();*
>>
>> * _port = new ServerPort(hostName, Port, credentials);*
>>
>> *_rpcServer = new Server*
>> *{*
>> *                Services = {BridgeService.BindService(new 
>> BridgeServiceImpl())},*
>> *                Ports = { _port }*
>> * };*
>>
>> *_rpcServer.Start();*
>>
>> Any idea what is missing?
>> Thanks,
>> Christian
>>
>>
>>
>>
>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/e48461e9-27c7-48a6-8277-0dae7b749461n%40googlegroups.com.

Reply via email to