avevlad / gulp-connect

Gulp plugin to run a webserver (with live reload)
https://npmjs.org/package/gulp-connect
MIT License
632 stars 113 forks source link

5.2.0版本通过IP无法访问服务 #248

Open ArvinChen9539 opened 6 years ago

ArvinChen9539 commented 6 years ago

最近更新了gulp-connect v5.2.0版本,发现通过本机IP不能访问到服务,只有localhost 或者127.0.0.1可以, 同一个局域网下也不可以,降回到5.0.0版本才可以正常访问. 因为我最近在用虚拟机调试所以才发现了这个问题.

The following comes from translate : The recently updated version of gulp-connect v5.2.0, found that access to the service through the IP can not only localhost or 127.0.0.1, the same LAN cannot be returned to the 5.0.0 version, it can be a normal visit. Because I have recently used virtual machine debugging so only to find the problem.

ForeverTali commented 6 years ago

host:"0.0.0.0"(或者设置成本机的IP) 可以Ip访问