How do I find my IP address in Terminal?

How do I find my IP address in Terminal?
Answer
Open finder, choose Applications, select Utilities, and then launch Terminal. When Terminal has launched, type the following command: ipconfig getifaddr en0 (to find your IP address if you are connected to a wireless network) or ipconfig getifaddr en1 (if you are connected to an Ethernet).
 

Tìm kiếm

Back
Top