Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Find the IP address of your DHCP server.

Ok so Im not sure if this will help many of you but since it took 3 of us to figure this out and since the place I found the answer was not Apple, i figured it was worth a post here.


to find the IP address of your DHCP server type the following command into terminal:


ipconfig getpacket en1 (or en0)


look for server_indentifier (ip) = your DHCP server's IP address


this command will also give you a ton of other info such as:

yiaddr = Your IP address

siaddr = Server Address

giaddr = gateway IP address

chaddr = Hardware Address

iMac, iOS 9.3.5

Posted on Oct 24, 2016 3:02 PM

Reply
Question marked as Best reply

Posted on Nov 11, 2016 8:02 AM

Other options would be:


system_profiler SPNetworkDataType | grep "Server Identifier"


and to narrow down the one you used:


ipconfig getpacket en0 | grep siaddr

ipconfig getpacket en1 | grep siaddr


There may be some mileage in using ifconfig as well? If you're connected over Wi-Fi holding down the option key whilst clicking on the Airport Icon in the Menu Bar will also show you the WAP's IP address, which in some cases will also be the DHCP server.

1 reply
Question marked as Best reply

Nov 11, 2016 8:02 AM in response to shadowheart411

Other options would be:


system_profiler SPNetworkDataType | grep "Server Identifier"


and to narrow down the one you used:


ipconfig getpacket en0 | grep siaddr

ipconfig getpacket en1 | grep siaddr


There may be some mileage in using ifconfig as well? If you're connected over Wi-Fi holding down the option key whilst clicking on the Airport Icon in the Menu Bar will also show you the WAP's IP address, which in some cases will also be the DHCP server.

Find the IP address of your DHCP server.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.