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
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
Hi,
check the video:
Thanks
Ads