javascript - 离子服务外部消失
问题描述
我的“离子服务”不再提供“外部网址”。只是可以访问“本地(本地主机:8100)”。Ionic3 和 Ionic4 都有同样的问题。
$ ionic serve
然后
[INFO] Development server running!
Local: http://localhost:8100
Use Ctrl+C to quit this process
[INFO] Browser window opened to http://localhost:8100!
我想要这个结果。(外部网址)
[INFO] Development server running!
Local: http://localhost:8100
External: http://172.30.5.17:8100
Use Ctrl+C to quit this process
[INFO] Browser window opened to http://localhost:8100!
解决方案
只是ionic serve --external
:)
推荐阅读
- visual-studio-2022 - Visual Studio 2022 在 Shift-F12 上打开 Bing.com
- unity3d - 如何修复 tilemap 插件奇怪的自动生成碰撞系统以实现统一(等距)
- ios - 关于 AVAudioSession 频道 UID 的问题
- python - 敌人和背景之间的相对运动问题
- reactjs - React TS:在使用道具作为参数调用函数之前等待道具
- flutter - 在 Android 模拟器上禁用串行控制台
- azure-active-directory - 在 Azure AD 中将子域提升为根的正确 Microsoft Graph API 端点是什么?它存在于 Azure AD Graph API 中,但已弃用
- anaconda - 无法运行 Anaconda-Navigator
- c# - 将 TSTAMP 转换为人类日期和时间
- tabulator - 我希望#tabulator 在加载数据时显示加载器,并在没有数据可用时抛出错误