Added the fix for not getting the ipaddress.

Added the fix for not getting the ipaddress.