Meteor testing app using local server and custom ip

社会主义新天地 提交于 2020-02-06 07:59:44

问题


I'm developing an meteor application client/server and app, too. when i compile my application using this command:

meteor run ios-device --mobile-server 192.168.2.126

App on device cannot connect to server (my server is on local network) and return this error in javascrip console:

Failed to load resource: Could not connect to the server.

If i use:

meteor run ios-device

it works perfecly.

Why? I need to have application installed on different server in different network. The server has always the same ip: 192.168.2.126.. I need my client/app application works when is connected to one of my local network..


回答1:


Solved, i have to use this format per server url:

http://192.168.2.126:3000


来源:https://stackoverflow.com/questions/32224239/meteor-testing-app-using-local-server-and-custom-ip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!