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 am trying to locate the IP Address of my Mac. Used the following command on terminal:

ifconfig |grep inet

   Output : 
   inet6 ::1 prefixlen 128
   inet6fe80::1%lo0 prefixlen 64 scopeid 0x1
   inet netmask 0xff0000000

but is localhost.. How to find the IP Address then ?


VISHWAS-MAC:~ VishwasGagrani$ ifconfig

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

inet6 ::1 prefixlen 128 

inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 

inet netmask 0xff000000 

gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280

stf0: flags=0<> mtu 1280


ether 34:15:9e:2e:b6:c2 

media: autoselect

status: inactive


ether 7c:6d:62:a2:ec:ac 

media: autoselect (<unknown type>)

status: inactive


lladdr 34:15:9e:ff:fe:2e:b6:c2 

media: autoselect <full-duplex>

status: inactive


ether 7c:6d:62:a2:e6:15 

media: autoselect

status: inactive
share|improve this question
Are you connected to a network at all? – cpast Jan 7 '13 at 7:00
What about the entire output of ifconfig could you post that? What network connections are activated, and which networks are you connecting to? (Finally, why would you need to find out the IP address of your Mac that way and not through System Preferences?) – slhck Jan 7 '13 at 7:06
At first i tried to use "About This Mac"==> More Info ==> Network. But ip address doesnot show at all. It's blank! When i go to SystemPreferences => Network => Airport(on) , i get a list of wireless internet networks as my ISP told me. I chose one and submitted the required password, but it doesnot connect. On further enquiry from ISP, they told me to provide the IP Address of the Mac. As they require it to give further permissions to my machine. I will paste the content of ifconfig soon. – Vishwas G Jan 7 '13 at 7:13
added the output of ifconfig also. – Vishwas G Jan 7 '13 at 7:22

If its not a requirement that you use the terminal you should jump into System Preferences>Network. On that page it will show you your IP aswell as the network your connected too.

share|improve this answer
Ya.. tried that, but it doesnot show any ip address there. :( – Vishwas G Jan 7 '13 at 14:06

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.