By: Thomas Zen user 16 Jan 2018 at 10:10 a.m. CST

3 Responses
Thomas Zen gravatar
Hi Gluu team, I am new to gluu-server. I install gluu-server on an virtual machine. When running the setup.py script, I use the local IP address and enter host name: `www.abc.com`. And I modify the `hosts` file on my computer. Everything works fine and I can login to gluu server on `www.abc.com` using admin account. Here comes the problem, I wants to use Super Gluu as authentication method. But after scanning the QR code using Super Gluu and click `Approve`, Super Gluu says > a server with the specified hostname could not be found I guess it's because my iPhone **can not** connect to `www.abc.com` whick is only on my virtual machine. But how can I tell my phone where the server is? Thanks.

By Aliaksandr Samuseu staff 16 Jan 2018 at 10:19 a.m. CST

Aliaksandr Samuseu gravatar
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.

By Thomas Zen user 16 Jan 2018 at 10:27 a.m. CST

Thomas Zen gravatar
Hi Aliaksandr, Thank you so much for your prompt and detail reply. I'll try to find a solution. If I can, I will post it here.

By Thomas Zen user 22 Jan 2018 at 9:47 a.m. CST

Thomas Zen gravatar
Hi Aliaksandr, I figured how to solve this problem. I use pagekite to expose my localhost so I can use my phone to access the hostname. This ticket can be closed. Thank you for your kindly help