How can I find my DHCP IP address on my computer?

 
 

Share on Google+Share on Google+

Java Coder
How can I find my DHCP IP address on my computer?
2 Answer(s)      2 years and a month ago
Posted in : Java Beginners
Ads

Hi,

I am using Ubuntu and I trying to find the IP address assigned to my computer by DHCP server. How to find the IP address?

Thanks

Ads
View Answers

December 24, 2015 at 7:05 AM


Hi,

You can try following command?

Here is the command to get the IP address:

cat $(ps aux | grep -o '[/]var/lib/NetworkManager/\S*.lease')

You can use the following command with grap option:

cat $(ps aux | grep -o '[/]var/lib/NetworkManager/\S*.lease') | grep dhcp-server-identifier

Thanks



February 8, 2016 at 3:32 PM


Hi,

check the video:

Thanks


Ads









Related Tutorials/Questions & Answers:
Advertisements

Ads

 
Advertisement null

Ads