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

Ads
 

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

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

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:
How can I find my DHCP IP address on my computer?
How can i modify my account in roseindia
Advertisements
my hibernate showing the following exception so how i can resolve it
how can i use toggle button in my application
How i can send testing mail on my id using java?
My Base Class is Changing every time in my code. How I can overcome this?
I want to change my user name on your website ,how can i do this
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets
How to find latitude and longitude of my Mobile Phone?
how i open my web page
how can i add wirecard option(or button ) at my web page plz tell all steps? View Answers
How can I open my Java desktop app by clicking on its file?
Find Exact Location from IP address in java?
How could I use Socket in my application?
ModuleNotFoundError: No module named 'my-ip'
ModuleNotFoundError: No module named 'my-ip'
plz check my codings are correct or not...There is an error..i cant find it..
How to find MAC(Hardware address) address of access point
How do I install urllib2 library in my Python module
ModuleNotFoundError: No module named 'refresh-my-ip'
How do I launch my career as Data Analyst?
how do i make a phone call from my app without quitting my application
Getting IP Address
Getting IP Address
IP Address validation
libodbc++ is stable? Can I use it in my production project? Is it has bugfix support?
in my project, i have to add scrollbars to a panel,. i need some example on it,how to doit.
I can not share my message from the textview on Facebook in Android, but in all other Application works successfully

Ads