Hi, Thomas.
>I guess it's because my iPhone can not connect to www.abc.com
That's most likely the cause.
>But how can I tell my phone where the server is?
That's getting a bit out of scope of Gluu support already :) It's more a question to Apple's support now, specifically how to add the same mapping you added at your PC to hosts file (or its equivalent) in your iPhone. I had such experience with Android devices before, and can't say it was easy. Perhaps you could consider using some actually resolvable FQDN for your test instance if you won't find a way.
Another thing to consider is whether there is a way for your iPhone to reach your Gluu instance (its TCP port 443). What is also a bit beyond the scope of these boards and depends heavily on network infrastructure you have at your premises. If you can somehow ensure that your phone and the Gluu's vm are in the same local subnet (like, connecting your phone to local WIFI spot which bridges your traffic to Gluu vm's subnet), you are almost done. Otherwise some elaborated chain of forwarded ports may be required.