Getting host name inside Activity


I have a requirement where Activity needs to send a Signal to Workflow , however the Activity and Temporal are hosted in different machines/ hosts and as a result the activity is not aware of host Name during execution time.

One way to know would be to read this value from properties file inside activity . but is there any other way?

What is the best approach to solve this requirement.

Thank you
Best Regard

How do other workers find the Temporal service host? For example, how does the activity worker is connecting to it? Use the same approach for the client the activity is using. Pass this client to the activity object during instantiation.

Thank you @maxim