Contact Form

Name

Email *

Message *

Cari Blog Ini

Macos Terminal Get External Ip Address

How to Find Your IP Address on a Mac Using Terminal

Terminal Commands for Finding IP Address

Internal IP Address:
To find your internal IP address, use the ifconfig command in the Terminal.

  1. Open the Terminal window.
  2. Type the following command: ifconfig
  3. Press Enter.

Example Output:

 eth0      Link encap:Ethernet  HWaddr 00:04:23:04:a6:ff             inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::204:23ff:fe04:a6ff/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1916 errors:0 dropped:0 overruns:0 frame:0           TX packets:2400 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:222498 (222.4 KB)  TX bytes:292344 (292.3 KB)           Interrupt:20 Memory:c0c00000-c0c20000  

External IP Address:
To find your external IP address, use a service like Can You See Me or What Is My IP Address.


Comments