Translated into an IP address, commonly a localhost is always designated as 127.0.0.1
. So generally, you can consider the loop back address same for every machine.
To get address other than 127.0.0.1
you may use the following bash command:
hostname -i
.