to get the ip address of the system