3 ms·
Is there an actual case to be made for pointing localhost to anything other than the loopback device?
by andreareina 10y ago
Is there an actual case to be made for pointing localhost to anything other than the loopback device?
- stubish 10y agoOnly if you are intent on using a hack to produce an unmaintainable system. Making 'localhost' point to anything other than loopback is just asking for trouble. People will do it because they can, but not because they should.
- bsimpson 10y agoChrome on Android lets you bind your phone/tablet's localhost to your computer's localhost. This enables you to test during development, even if your corporate IT people disallow connections between devices on the same WiFi network (or partition personal devices onto a different network than corporate hardware).
- andreareina 10y agoHey that's a neat trick. If I'm reading the docs[1] correctly, as far as the application is concerned it is connected to the loopback. The same thing happens when I `ssh -L <port>:localhost:<port> <local-vm>`. I think it also follows the spirit of the idea since the change is local to the machine you're using. [1] https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/local-server?hl=en https://developers.google.com/web/tools/chrome-devtools/debu...