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

Web server listens on all interfaces and says it's on localhost #1097

Closed
hut8 opened this issue May 1, 2015 · 4 comments
Closed

Web server listens on all interfaces and says it's on localhost #1097

hut8 opened this issue May 1, 2015 · 4 comments
Milestone

Comments

@hut8
Copy link
Contributor

hut8 commented May 1, 2015

hugo server -w outputs, inter alia:

Web Server is available at http://localhost:1313/

In fact, it's actually listening on all interfaces. Really there should be an option/flag to pick an interface (which I don't see right now), or at least display the fact that it's actually open to the rest of the internet.

@bep bep added the Bug label May 1, 2015
@bep
Copy link
Member

bep commented May 1, 2015

@spf13 we should fix this. Not sure what's easiest. Default to 127.0.0.1 and add a host flag?

@hut8
Copy link
Contributor Author

hut8 commented May 2, 2015

@bep I think that's prudent. I'll submit a PR since it's trivial.

@hut8
Copy link
Contributor Author

hut8 commented May 2, 2015

Note to self: when it says it's listening on 127.0.0.1, it does in fact set the base URL to that, which is why all the absolute references (like the css) were breaking for me (I'm developing on my VPS)

@bep bep added this to the v0.14 milestone May 3, 2015
hut8 added a commit to hut8/hugo that referenced this issue May 4, 2015
Bind by default to 127.0.0.1. Previously it always bound to all interfaces.

Always have log message display that the server is available on the
interface to which it is bound, instead of the baseUrl.

Fixes gohugoio#1097
@bep bep closed this as completed in 2bfa9fb May 7, 2015
tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 2017
Bind by default to 127.0.0.1. Previously it always bound to all interfaces.

Always have log message display that the server is available on the
interface to which it is bound, instead of the baseUrl.

Fixes gohugoio#1097
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants