I am trying to find my IP on VPN (PPTP) so I tried "ipconfig getifaddr ppp0" but it gave me "get if addr ppp0 failed, (os/kern) failure." Why does it fail and what should I do instead? ifconfig shows all my interfaces just fine, and with the IP. "ipconfig getifaddr en1" works too. I am on a Mac if that makes any difference.

Thanks!

link|improve this question

64% accept rate
feedback

1 Answer

it probably fails because you have no ip address on that interface. this is what happens i try to get the ip on en0 (ethernet) and en1 (wifi)

localhost:~ > ipconfig getifaddr en0
get if addr en0 failed, (os/kern) failure

localhost:~ > ipconfig getifaddr en1
192.168.1.120
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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