The only reason, for IPaddress

ort to work, when domain.name

ort doesn't, is DNS isn't resolving the name. Or, if DNS is resolving it the IP it's returning is incorrect.
Double check your DNS entry, I'm willing to bet you transposed two numbers or something equally easy to miss.