Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get a site mirroring with wget, and came across a strange behavior.

Say I am mirroring an internal site named in the following way, all seems to be working fine:

wget -mkE

However, as I need to access the server by IP and not domain name, I try with:

wget -mkE -D --header "Host:" http://IPv4_ADDR

But in this case, it only downloads the first page and exits.

any idea?

share|improve this question
up vote 1 down vote accepted

When you use wget with http the only way it can determine what else is on the same site is via links in the retrieved pages. Depending on how those links have been created (absolute or relative), when you fetch via IP address the links may appear to wget to be external, in which case it won't follow them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.