macOS: Find your DHCP Server Address

KB ID 0001587

Problem

In Windows this is easy to find, ‘ipconfig /all‘ will tell you 🙂 On macOS it’s not so simple.

Solution

First you need to know which network card we are talking about! Your wireless network card is nearly always en0 (that’s a zero), if you are on a wired connection simply run ifconfig and find the right network card.

to double check you can run;

ipconfig getifaddr en0

Then to see your DHCP server address, issue the following command;

ipconfig getpacket en0

Look for the value of server_identifier this is the DHCP servers address.

macOS Get DHCP Server Address

Related Articles, References, Credits, or External Links

NA

Author: PeteLong

Share This Post On

2 Comments

  1. The two commands should be

    ipconfig getifaddr en0
    ipconfig getpacket en0

    and not

    ifconfig getifaddr en0
    ifconfig getpacket en0

    as given

    Post a Reply
    • Yikes – Typo Thanks Alex

      Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *