Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Angular】 #154

Open
deepthan opened this issue Sep 17, 2021 · 1 comment
Open

【Angular】 #154

deepthan opened this issue Sep 17, 2021 · 1 comment

Comments

@deepthan
Copy link
Owner

1. 如何让别人可以访问自己本地启动的服务

使用ipconfig查看自己的ipV4地址,如192.168.16.11,之后在加上--host 192.168.16.11 ,关闭本地防火墙别人即可访问你的项目。

也可以直接使用--host 0.0.0.0启动。
访问地址
192.168.16.11:4200

启动方式
ng server --host 192.168.16.11

@zmj0920
Copy link

zmj0920 commented May 20, 2022

ng serve --host 192.168.16.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants