Remove use of deprecated wfGetIP()

Change-Id: Ibff9d53b249307309214426dd0492707e474aaaa