'What's the exact meaning of "ng serve -- host any_name"?

If we put an IP and host mapping in /etc/hosts file, then if we access the website using the hostname, we get redirected to that IP instead. But when I do this:

ng serve --host any_name

What is this doing? Setting host means what exactly? Does the host provided here have any relation to the host in /etc/hosts file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source