[ADDED] Use getCurrentIP on IP check