LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-04-2005, 09:00 PM   #1
LegolasV
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Rep: Reputation: 0
Question How to detect ip change


I'm doing some kernel module programming. What I am considering is how to detect if the ip of the host is changed. I would prefer not to try the stupid way like keep checking the ip. Anybody know about it? Any free source code available?
 
Old 08-04-2005, 09:08 PM   #2
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Rep: Reputation: 31
The IP of which host? Your localhost or another computer? If it is the local machine, then are you worried about the actual IP of the adapter or your external (WAN) IP address.

If the later (or if your computer is not behind a router and/or firewall) then the following *may* help:

http://www.scrounge.org/ipwatch/
 
Old 08-04-2005, 09:44 PM   #3
LegolasV
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Hi. Im worrying about the actual ip of the adapter of the local host.
 
Old 08-04-2005, 09:47 PM   #4
LegolasV
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Is there anyway to do it in C programming? The link you give me is for shell programming.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect ip change lopo Linux - Networking 2 03-13-2005 03:39 AM
Cannot Change GNOME Menu Items to add/change Item for Mozilla 1.2 After Upgrade metoome General 0 03-27-2004 12:19 AM
Cannot Change GNOME Menu Items to add/change Item for Mozilla 1.3 After Upgrade SForsgren Linux - General 4 03-26-2004 11:43 PM
under kde3 i change change language, where in gnome? sirpelidor Mandriva 1 12-10-2003 04:39 PM
motherboard change - will detect, right? gerghk Slackware 2 07-22-2003 11:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration