How to find your local IP address using the MacOS Terminal

If you don’t like menus and windows, you can start the MacOS Terminal app and use the command prompt to find your local IP address.

  1. Start Terminal. It’s probably in the Utilities subfolder of the Applications folder.
  2. Enter the command ipconfig getifaddr en1 at the command prompt. That will tell you the IP address of your wired Ethernet connection, if you have one. Or:
  3. Enter the command ipconfig getifaddr en0. That will tell you the IP address of your wireless connection, if you have one.

To get your public IP address from the Mac Terminal, enter the command curl ifconfig.me.

How to an IP address using windows 10

Leave a reply:

Your email address will not be published.

Site Footer