fix a bug:can't get local machine ip address.