simplified hostIP variable derivation

Change-Id: Ib72f672ca8819afdf1345923f6886626f9dee508