Simple node server started like so:
server.listen(8080, '127.0.0.10');
This ip address does not exist anywhere in ifconfig
:
sudo ifconfig | grep 127.0.0.10 # No matches
I can connect to 127.0.0.10
and reach node, but not any other loopback IP:
curl -sS http://127.0.0.10:8080/ # Works
curl -sS http://127.0.0.1:8080/ # curl: (7) couldn't connect to host
I can ping any loopback address (eg 127.0.12.34
) and get a response.
What's going on here, and most importantly, is it safe to use this addresses in production without first creating a new loopback adapter like lo:1
?