sakh251:

bld/pytorch_1595629395347/work/third_party/gloo/gloo/transport/tcp/pair.cc:769] connect [127.0.1.1]:62374: Connection refused


Hmm, this log seems to suggest it still tries to use localhost. Can you confirm that this is different from the ip and port you passed to init_method?
If yes, can you check what does the following command return?
getent hosts `hostname`

If it does not return the expected IP, you might need to set the GLOO_SOCKET_IFNAME to specify the correct network interface. See this doc: https://pytorch.org/docs/stable/distributed.html#choosing-the-network-interface-to-use 26