publish dynamic port

31 views
Skip to first unread message

mos...@gmail.com

unread,
Jul 5, 2017, 5:51:16 PM7/5/17
to grpc.io
Hi,
i am using grpc1.4.0 on windows.

I would like to establish P2P connection (client-server). Server binds to a
dynamic port and client should be familiar with the port number in order to
connect to it.
What is best way to publish the port number to the client?
Moshe.
Thx.

Carl Mastrangelo

unread,
Jul 11, 2017, 3:43:37 PM7/11/17
to grpc.io, mos...@gmail.com
You'll need some way to rendezvous the two.   Typically the way to do this is just use a well know port number.  Otherwise you'll need a third party to record the ports, and tell new clients.

For larger setups, you can use Zookeeper, though I haven't personally used it.
Reply all
Reply to author
Forward
0 new messages