August 12, 20223 yr I see a lot of references to use “localhost” for network path but for me it doesn’t work. I tried putting it in the etc/hosts and etc/host name but it still doesn’t work. How does this work?
August 12, 20223 yr Community Expert What computer are you using it on and what computer are you expecting to access with it? localhost is the loopback to the same computer. https://en.wikipedia.org/wiki/Localhost
August 13, 20223 yr Author 20 hours ago, trurl said: What computer are you using it on and what computer are you expecting to access with it? localhost is the loopback to the same computer. https://en.wikipedia.org/wiki/Localhost I.e. in NPM when setting a reverse proxy to a container or when routing cloudflare to a container.
August 13, 20223 yr Community Expert 22 hours ago, Pstark said: tried putting it in the etc/hosts Can't imagine why that would be necessary or effective. localhost is the same computer, IP 127.0.0.1 For example, from a specific Windows PC, localhost refers to that very same specific Windows PC. For all computers, localhost is the same computer.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.