I have a web app running on my local machine.
I want to expose the app on my local corporate network.
I know that I can expose it via the currently assigned ip address as:
http://myipaddress:port/index.html
However I have figured out my local computer name using
scutil --get ComputerName
It returns my computer name as anands
I have it registered on my /etc/hosts file as
127.0.0.1 anands
But when I try to expose it via
http://anands:port/index.html
people on my local network are not able to access it