How to: Find your DHCP server's IP address using Terminal on your Mac


Instructions

NOTE: You must be obtaining your IP address using DHCP or these instructions will not work as expected.

1) Open the Terminal app.

2) Run the following command:

ipconfig getpacket en0

NOTE: You may need to replace en0 with en1 or the correct identifier of your network interface.

3) Locate server_identifier (ip) in the resulting output. That's your DHCP server's IP address.

Additional information:

  • yiaddr: your computer's IP address
  • chaddr: your computer's hardware address
  • domain_name_server: your DNS server(s)

OUTCOME

You have the IP address of your DHCP server.