添加帐户系统后,如何通过我的 phone 访问我的流星应用程序?

How do I access my meteor App via my phone, after adding an account system?

通过输入服务器 IP 地址和端口,我能够在我的手机 phone 上访问我的流星应用程序。例如192.168.0.106:3000。这在向我的老板展示进步时非常有用。

但是现在我已经通过以下方式向我的流星应用程序添加并配置了 Facebook 和 Google 帐户系统:

 meteor add accounts-facebook
 meteor add accounts-google

我只能通过我的电脑登录和访问我的应用程序。 当我尝试通过我的 phones 使用 facebook 登录时,我被定向到一个错误页面,上面写着:

localhost:3000/_oauh/facebook?code=... where it says:
This site cannot be reached. Local host refused to connect. 
Try checking the connection...

并通过 Google 登录,我被重定向到页面:

localhost:3000/_oauh/google?sate=... where it says:
This site cannot be reached. Local host refused to connect. 
Try checking the connection...

再次澄清一下,只有通过我的计算机登录后我才能访问我的应用程序,但不再通过我的手机 phones。还有办法通过我的电脑和手机 phones 访问该应用程序吗?

提前致谢!

问题出在 localhost:3000。在设置您的 FB 应用程序时,您已将重定向 URL 设置为 localhost:3000 并且它正在尝试将其重定向到那个。不幸的是,该地址在移动设备上不存在,因此,您会收到该错误。

获取域名并将其指向该 IP。然后在 FB/Google 应用程序的重定向 URL 中使用该域名。

您必须获得域,因为 FB/Google 不会重定向到 IP。