added support osx to prompt ip address.