Added a better ip detection and converted it into a task
Updated the Readme file to explain json configuration for the tests