3 ms·
Couldn't you just bind to different addresses under 127.0.0.1/8 ? eg 127.0.0.1, 127.0.0.2 etc
by jamespo 9y ago
Couldn't you just bind to different addresses under 127.0.0.1/8 ? eg 127.0.0.1, 127.0.0.2 etc
- Slartie 9y agoNot if there isn't an interface. If I create one, sure, but then I would have to do that on all dev computers as well and I'd have to forward the address somehow into all server and client configs and/or command-lines of tools started as part of the build process. Just overriding "localhost" spares me from both (the address to resolve is provided as an env variable, just like LD_PRELOAD itself - and env variables are inherited by child processes, which is great in my scenario).
- jamespo 9y agoBut the loopback interface is up & available as standard? Only advantage I can see is if localhost is hardcoded everywhere.
- AnIdiotOnTheNet 9y agoYou can't just pass in which interface to bind via an environment variable or parameter?