[TensorPipe] Bind to hostname's IP address instead of localhost (#39184)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39184
TensorPipe has implemented some helpers to resolve the IP address of the hostname and to retrieve the IP address of a given interface using libuv, which means they are supposed to be portable across Linux, Mac, Windows... We can thus replace the version we had implemented inside the agent itself (which only resolved the hostname) with those helpers.
ghstack-source-id: 104837026
Test Plan: Unit tests
Differential Revision: D21494693
fbshipit-source-id: 4652dde6f7af3a90e15918506a103408f81ced0b