I just started on the Bank box. I noticed that the IP address for the box is not enough to navigate to the login page and that we needed to correctly guess the hostname of bank.htb.
I thought these were essentialy equivalent values? If all I’m doing is adding the IP address of bank.htb to my etc/hosts then why would the raw IP address just lead me to the default apache2 ubuntu page?
If you don’t configure bindings to virtual hosts, IP addresses and names are equivalent and just determined by DNS. But you can bind websites to ‘virtual’ host names.
A hosting provider can host websites for several customers at the same machine, using a single IP. The different sites are just distinguished by the host name (host header) the browser sends.