-
Notifications
You must be signed in to change notification settings - Fork 19
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
Auto search new port if 8080
is busy
#40
Comments
You can already define a custom port using |
We use Also in some machines Solve problem for resolve free port on
Don't think. It is easy implement.
Don't think it is good solution. Development server should use internal ip/port for security reason Solution http://php.net/manual/ru/function.socket-create-listen.php#44187 Maybe better add new option |
I think you misunderstood. I meant that that might happen when randomly selecting a port. Your random port might just happen to match an open port that with a pre-existing mapping. So, if you already have a mapping to map port 8888 to the open external port 80, randomly selecting a port might just as well land on that exact 8888 and unwillingly expose your development server. |
@schlessera for two servers - yes, but when you run only php webserver - not, it will be great feature anyway. |
Will be great if
server
command try to search other free port when8080
is busy. I can send PR if you accept.The text was updated successfully, but these errors were encountered: