Changed method to get local IPAdress of system.