[TensorPipe Agent] Bind default IP address (#37910)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37910
To resolve the issue: https://github.com/pytorch/pytorch/issues/36715
In tensorpipe rpc agent, we currently hardcoded localhost as pipes handshake IP address. This prevents us from setting up cross-host connections. As the first step, we start binding IP address for a given network device. For now it's defaulted to eth0. Will provide options to let user configure
Test Plan: CI
Reviewed By: lw
Differential Revision: D21421094
fbshipit-source-id: 60f612cbaeddcef7bd285136ad75af20709a7d56