def set_stub_port(self, port, IP_address): self.__stub_to_peer_service = loopchain_pb2_grpc.PeerServiceStub( grpc.insecure_channel(IP_address + ':' + str(port)))