Changed method of obtaining IP address as previous ver returned
127.0.0.1