Basically, you can't.
The IP is like the address of a huge apartment building. If you just send that over the Web, when it gets to the apartment building (in this case your server), there is no way for the doorman to know which apartment to send you to.
When you use the full domain name, the...