get server ip address and press enter to exit