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 to my database to my application
Advertisements
How can i modify my account in roseindia
How can I protect my database password ?
How can I connect my database to my application ?
how can i simplify my java code
how i can add an horizontal scrollbar at my PdfAnnotation ? - JSP-Servlet
how can i use toggle button in my application
my hibernate showing the following exception so how i can resolve it
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 Convert my Image Files to Text Files? - IDE Questions
How to find latitude and longitude of my Mobile Phone?
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 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?
How to launch my web application from my desktop without opening Netbeans IDE everytime i run the application?
plz check my codings are correct or not...There is an error..i cant find it..
Getting IP Address
Getting IP Address
How to find version of Java installed on my computer? - Java Beginners
how do i make a phone call from my app without quitting my application
How do I launch my career as Data Analyst?
How to find MAC(Hardware address) address of access point

Ads