allow worker to work when a host has multiple IP addresses (remove merges from #1879)

reprise 1879 for Viral