We can specify the Server IP/Port while connecting a Client using:
c = rpyc.connect("127.0.0.1",port=18812)
However, I'd like to know if there is a way in which we can specify which port the Client would use OR if we can identify which port the Client will use each time it tries to connect to the server.
This can be identified if logging is enabled on the Server:
INFO:MASTERSERVER/18812:server started on [127.0.0.1]:18812
INFO:MASTERSERVER/18812:accepted ('127.0.0.1', 62372) with fd 664
INFO:MASTERSERVER/18812:welcome ('127.0.0.1', 62372)
INFO:MASTERSERVER/18812:goodbye ('127.0.0.1', 62372)
However, I'd like to know if there's a way to get this info from & on the Client.