Added error message support to the ip getter