Skip to content

Instantly share code, notes, and snippets.

@trilliwon
Created December 12, 2021 06:56
Show Gist options
  • Save trilliwon/55bee88c96b4e08cf4b136ed6a4ec17f to your computer and use it in GitHub Desktop.
Save trilliwon/55bee88c96b4e08cf4b136ed6a4ec17f to your computer and use it in GitHub Desktop.

Private(Local) IP vs Public IP (내부 IP, 외부 IP, IP : Internet Protocol)


  1. Find my IP Address on macOS

  • Option +"Click Wifi Menu Bar", then you can see below

  • ipconfig getifaddr en0 if connected via a wireless connection.

  • ipconfig getifaddr en1 if connected via ethernet.

  • ipconfig getifaddr en3 if connected via a Thunderbolt-to-ethernet adaptor.

  • curl http://ipecho.net/plain; echo


  • Private IP Address : Local area 에서 Router 가 사용하는 IP addresses, used to assign computers within your private space without letting them directly expose to the Internet
  • Public IP Address : Can be accessed over the Internet, globally unique IP address assigned to a computing device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment