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

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









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 connect my database to my application ?
How can i modify my account in roseindia
How can I protect my database password ?
how can i simplify my java code
how can i use toggle button in my application
How i can send testing mail on my id using java?
how i can add an horizontal scrollbar at my PdfAnnotation ? - JSP-Servlet
How can I start my career in data science?
my hibernate showing the following exception so how i can resolve it
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 i open my web page
Can I learn Hadoop on my own?
Can I learn R on my own?
Can I put coursera on my resume?
Can I put online courses on my CV?
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?
ModuleNotFoundError: No module named 'my-ip'
ModuleNotFoundError: No module named 'my-ip'
Find Exact Location from IP address in java?
How can I Convert my Image Files to Text Files? - IDE Questions
How could I use Socket in my application?
plz check my codings are correct or not...There is an error..i cant find it..
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?
ModuleNotFoundError: No module named 'refresh-my-ip'
How to launch my web application from my desktop without opening Netbeans IDE everytime i run the application?
How do I install urllib2 library in my Python module
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
Getting IP Address
Getting IP Address
How do I launch my career as Data Analyst?
how do i use sql like query in my jsp page
i want to find the byte code of a image file ... for my project..plz if anybody help me for java coding i will grateful..
I have problem in my Project
I GOT ERROR FOR MY PROJECT
IP Address validation
How to find MAC(Hardware address) address of access point
Getting IP address of All the machines
in my project, i have to add scrollbars to a panel,. i need some example on it,how to doit.
ModuleNotFoundError: No module named 'ip-address'
ModuleNotFoundError: No module named 'ip-address'
ModuleNotFoundError: No module named 'find-my-favorite-cat'

Ads