Problem with "check_command"

I would like to monitoring this page http://10.0.1.6:7001/console into NAGIOS.
The problem is that into the services.cfg i put into the line:

check_command check_url!/console!7001

At first, that’s good, but my computer have two IP’s and this line looks to another IP.