Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
2  
Localhost ip for the machine? ifconfig will show you that (from command line) –  Darius Sep 7 '13 at 13:38

2 Answers 2

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

ifconfig

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

share|improve this answer

Your Answer

 
discard

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.