Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to setup a Linux server. How can I get the IP address for the Linux machine, so that I can use this IP to load the page on another machine?

share|improve this question
Localhost ip for the machine? ifconfig will show you that (from command line) – Darius Sep 7 '13 at 13:38

ifconfig will show you the IP address configured on the interface. So does the modern equivalent ip addr (yes, that's two words; the command is ip and the parameter is addr). Try:

ip addr | grep 'inet '

which will show all IPv4 addresses assigned to interfaces currently up on your machine.

If you need the external IP address, there are numerous services which can tell you about that. Here's one.

share|improve this answer

As Daruis has commented, calling


from the Shell (using a Terminal Emulator) would display various related network data, such as your IP addresses.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.