0

Is it possible to connect GPRC client in Python or any language to a remote server using DNS or an actual IP address?. If you can provide a code snippet that would be great.

1 Answers1

1

Yes, see this example.

You would replace localhost:50051 with the remote server's fully-qualified domain name (or IP address) and port.

DazWilkin
  • 32,823
  • 5
  • 47
  • 88
  • 1
    This did not work. I have tried and still getting connection issues. Also, if the server has credentials how I can supply the credentials. – Osama Natouf Oct 07 '21 at 16:13
  • 1
    Please provide more information than "this did not work". What exactly did you try? What output|logs were produced by the client and server? Providing credentials is a different question and is explained on the site that I referenced: https://grpc.io/docs/guides/auth/ – DazWilkin Oct 07 '21 at 18:47