Umi: 使用公网ip访问服务器的开发环境,umi ui说非本地ip不能直接连接,需添加环境变量0.0.0.0。

Created on 29 Dec 2019  ·  7Comments  ·  Source: umijs/umi

What happens?

A clear and concise description of what the bug is.
使用公网ip访问服务器的开发环境,umi ui说非本地ip不能直接连接,需添加环境变量0.0.0.0。

我启动时 npm start HOST=0.0.0.0或者 npm start 'HOST=0.0.0.0' 都不能解决这个问题。

Most helpful comment

HOST=0.0.0.0 npm start 或者 HOST=0.0.0.0 umi dev
还是提示说非本地ip不能访问。

All 7 comments

HOST=0.0.0.0 npm start 或者 HOST=0.0.0.0 umi dev

HOST=0.0.0.0 npm start 或者 HOST=0.0.0.0 umi dev
还是提示说非本地ip不能访问。

也遇到了这个问题加了HOST=0.0.0.0没用

也遇到了这个问题加了HOST=0.0.0.0没用 @ycjcl868

通过127.0.0.1进行访问试试

通过127.0.0.1进行访问试试

公网ip..我是通过服务器直接进行开发的,用来玩下:smile:

同 命令行以及start中加入环境变量 都没有用

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sorrycc picture sorrycc  ·  4Comments

nguyenhuutinh picture nguyenhuutinh  ·  3Comments

stoneWeb picture stoneWeb  ·  3Comments

six-666 picture six-666  ·  3Comments

ddzy picture ddzy  ·  3Comments