This time I will show you how to deal with the problem that the local development environment cannot be accessed by IP. What are the things to note when the local development environment cannot be accessed by IP? The following is a practical case, let's take a look.
Problem description: You can only use http://localhost:8080 to access the project, not http://local IP: 8080 access
Solution: webpack dev
Addhost to the configuration file : '0.0.0.0'
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
How Vue uses dynamic refresh Echarts componentCase analysis of using selectpicker drop-down boxThe above is the detailed content of What to do if the local development environment cannot be accessed using IP. For more information, please follow other related articles on the PHP Chinese website!