How to change the default web server ip(127.0.0.1) of Flutter Web app

独自空忆成欢 提交于 2020-01-16 19:12:52

问题


Change the default IP(127.0.0.1) of flutter web App.

I have created a flutter web application, when I run the web app the ip which assigned is 127.0.0.1 but i am unable to access the same app with my local IP over LAN. So please help on how can i change this.


回答1:


Start app with command:

webdev serve --hostname 0.0.0.0

Or replace 0.0.0.0 with your actual ip address.



来源:https://stackoverflow.com/questions/56967885/how-to-change-the-default-web-server-ip127-0-0-1-of-flutter-web-app

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