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
Can I put coursera on my resume?
Can I put online courses on my CV?
Can I learn Hadoop on my own?
Can I learn R on my own?
how i open my web page
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
ModuleNotFoundError: No module named 'my-ip'
ModuleNotFoundError: No module named 'my-ip'
How to find latitude and longitude of my Mobile Phone?
Find Exact Location from IP address in java?
plz check my codings are correct or not...There is an error..i cant find it..
How can I Convert my Image Files to Text Files? - IDE Questions
How could I use Socket in my application?
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
Getting IP Address
Getting IP Address
how do i make a phone call from my app without quitting my application
How to find version of Java installed on my computer? - Java Beginners
How do I launch my career as Data Analyst?
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
how do i use sql like query in my jsp page
I GOT ERROR FOR MY PROJECT
IP Address validation
Getting IP address of All the machines
How to find MAC(Hardware address) address of access point
ModuleNotFoundError: No module named 'ip-address'
ModuleNotFoundError: No module named 'ip-address'
in my project, i have to add scrollbars to a panel,. i need some example on it,how to doit.
ModuleNotFoundError: No module named 'find-my-favorite-cat'

Ads