I would say the client just repeats what the server says, and the server is not lying.
What is the value of $CFG->wwwroot in the config.php of your Moodle server? If you want to call it by http://ipaddress then $CFG->wwwroot must be http://ipaddress.
P.S. The topic is too dry (for my taste) to be discussed in the Lounge. Installation problems is more suitable IMHO.
Installing and upgrading help
not accessing moodle server from client
This discussion has been locked so you can no longer reply to it.