added option to get the information of the device ip address