use local socket pair to handle the case of all network interfaces are down.