Detectig Duplicate IP Address

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I detect duplicate IP address from my VC++ or VB code? I have written
programs to read all the IP address on the network. But unfortunately, it
doesn't detect the duplicate address. This is because windows OS suppress the
duplicate address and make the new machines IP as 0.0.0.0. If yopu see the
network configuration, theaddress will be the same provided by the user. If
you call IPconfig on the new machine, it shows 0.0.0.0.

Can anyone help me in detecting duplicate IP addressthrough a program?

Thanks and regards
 
I don't think what you seek is possible. The computer with the duplicate IP
address on the network disables the TCP/IP interface to avoid problems.
That's why its IP address shows up as zeros.

--
Richard G. Harper [MVP Shell/User] (e-mail address removed)
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ... http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm
 
Do not know of a specific program - however DHCP includes an option that can
be set to check for address conflicts - IP addresses are assigned either
automatically by DHCP or a static address assigned by the "administrator" -
if neither are available XP assigns a private address in the "169......."
scope. If auto configuration (TCP/IP) is selected DHCP assigns an address
for which it has no lease designated - duplicate addresses are possible when
an address has been assigned and no lease period assigned and the address is
again assigned.
 
Back
Top