Fix torch.distributed.run init connect timeout by comparing `host` with the current IP list (#90221)
Summary:
Pull Request: https://github.com/pytorch/pytorch/issues/79388
Fix torch.distributed.run init connect timeout by comparing `host` with the current IP list.
Test Plan: unit tests
Differential Revision: D41373962
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90221
Approved by: https://github.com/d4l3k