Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there a way to read dynamic IP address from ubuntu linux file, without using commands like ifconfig etc.. ie Read directly from a file.

I am developing an application in linux that need to use the ip address dynamically assigned by the DHCP server. I know I can access the IP address from "etc\network\interfaces" if the ip address is static but how I will get the IP address if the IP address is dynamic. I am not intersted to use commandline tools. I prefer to read directly from a file.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900