Yes you can replace it with the ip addr or host name as long as localhost == ip == hostname then it will work