Make configurable the interface used to detect public IP