Skip to content

Documentation on how to add a host address #26

Answered by daveaglick
blachawk asked this question in Q&A
Discussion options

You must be logged in to vote

Great question! The hosts file entry gets you part of the way there by mapping local.statiq to your local network. The other part is going to be the port that the Statiq preview server is listening on.

If you leave the port at the default of "5080" then you should be able to hit the site at http://local.statiq:5080. Since DNS resolution (the hosts file bit) and binding a TCP listener to a port are separate things, there's unfortunately no way to add the port to the hosts file.

The other option is to change the default port for the Statiq preview server to the default HTTP port 80 so that you don't need to specify one. This gets tricky because there's a chance you have something else bound…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blachawk
Comment options

Answer selected by blachawk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #26 on October 27, 2020 19:53.