Archived

This forum has been archived. Please start a new discussion on GitHub.

how can i check whether 2 entities are in the same host?

Hi:
I get 2 proxies, and I want to know whether the entities of the proxies are in the same host? does ICE supports this function?

Comments

  • marc
    marc Florida
    You could in theory extract the hostname from a proxy. However, this is not always correct, since different hostnames can still denote the same physical host (different interfaces, hostname aliases, numeric vs. symbolic hostnames, etc.).

    The simplest solution would be to add a host identifier to your application (like a string), and add a getHostIdentifier() method (or similar) to your interfaces.